@litfamily/litcodex 1.0.38 → 1.0.39

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 (1071) hide show
  1. package/README-Ko-KR.md +29 -9
  2. package/README.md +28 -10
  3. package/dist/cli.js +0 -62
  4. package/dist/install/bundled-skill-manifests.d.ts +0 -19
  5. package/dist/install/bundled-skill-manifests.js +0 -19
  6. package/dist/install/bundled-skills.d.ts +0 -1
  7. package/dist/install/bundled-skills.js +2 -13
  8. package/dist/install/development-marketplace.js +0 -5
  9. package/dist/install/doctor-render.js +0 -1
  10. package/dist/install/doctor.js +0 -4
  11. package/dist/install/execute.d.ts +3 -0
  12. package/dist/install/execute.js +8 -1
  13. package/dist/install/extensions-notice.d.ts +27 -0
  14. package/dist/install/extensions-notice.js +57 -0
  15. package/dist/install/generated-skill-payload-hashes.d.ts +13 -948
  16. package/dist/install/generated-skill-payload-hashes.js +13 -948
  17. package/dist/install/index.js +17 -24
  18. package/dist/install/marketplace-payload.d.ts +13 -0
  19. package/dist/install/marketplace-payload.js +55 -6
  20. package/dist/install/shipped-skill-digests.d.ts +1 -0
  21. package/dist/install/shipped-skill-digests.js +1681 -0
  22. package/dist/install/skill-backup.d.ts +19 -0
  23. package/dist/install/skill-backup.js +114 -0
  24. package/dist/install/types.d.ts +0 -1
  25. package/dist/postinstall.js +2 -16
  26. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  27. package/marketplace/plugins/litcodex/components/auto-update/dist/cli.js +13 -4
  28. package/marketplace/plugins/litcodex/components/auto-update/dist/extensions-notice.d.ts +2 -0
  29. package/marketplace/plugins/litcodex/components/auto-update/dist/extensions-notice.js +37 -0
  30. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  31. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  32. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  33. package/marketplace/plugins/litcodex/components/lit-loop/directive.md +14 -5
  34. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-schematic.md +44 -128
  35. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-scientific-visualization.md +33 -83
  36. package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +4 -3
  37. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.d.ts +0 -2
  38. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +2 -3
  39. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +0 -3
  40. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +0 -20
  41. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.d.ts +3 -9
  42. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +8 -51
  43. package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.js +13 -18
  44. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  45. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  46. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  47. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  48. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  49. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  50. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +32 -28
  51. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +29 -133
  52. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/agents/openai.yaml +1 -1
  53. package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +32 -73
  54. package/marketplace/plugins/litcodex/skills/lit-docx/agents/openai.yaml +1 -1
  55. package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +15 -7
  56. package/marketplace/plugins/litcodex/skills/lit-loop/references/full-workflow.md +3 -2
  57. package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +32 -88
  58. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/openai.yaml +1 -1
  59. package/marketplace/plugins/litcodex/skills/lit-schematic/SKILL.md +28 -152
  60. package/marketplace/plugins/litcodex/skills/lit-schematic/agents/openai.yaml +1 -1
  61. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +30 -239
  62. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/agents/openai.yaml +1 -1
  63. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +29 -34
  64. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/agents/openai.yaml +1 -1
  65. package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +4 -3
  66. package/marketplace/plugins/litcodex/skills/litwork/references/delivery-playbook.md +3 -2
  67. package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +31 -61
  68. package/marketplace/plugins/litcodex/skills/visual-qa/SKILL.md +40 -34
  69. package/marketplace/plugins/litcodex/vendor/NOTICE +7 -17
  70. package/node_modules/@litcodex/lit-loop/CHANGELOG.md +4 -0
  71. package/node_modules/@litcodex/lit-loop/README.md +4 -2
  72. package/node_modules/@litcodex/lit-loop/directive.md +14 -5
  73. package/node_modules/@litcodex/lit-loop/directives/lit-schematic.md +44 -128
  74. package/node_modules/@litcodex/lit-loop/directives/lit-scientific-visualization.md +33 -83
  75. package/node_modules/@litcodex/lit-loop/directives/litwork.md +4 -3
  76. package/node_modules/@litcodex/lit-loop/dist/codex-hook.d.ts +0 -2
  77. package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +2 -3
  78. package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +0 -3
  79. package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +0 -20
  80. package/node_modules/@litcodex/lit-loop/dist/motion-route.d.ts +3 -9
  81. package/node_modules/@litcodex/lit-loop/dist/motion-route.js +8 -51
  82. package/node_modules/@litcodex/lit-loop/dist/route-heads.js +13 -18
  83. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  84. package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +15 -7
  85. package/node_modules/@litcodex/lit-loop/skills/lit-schematic/SKILL.md +28 -152
  86. package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +30 -239
  87. package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +4 -3
  88. package/node_modules/@litcodex/lit-loop/vendor/NOTICE +7 -17
  89. package/package.json +2 -2
  90. package/readme-assets/badge-version.svg +1 -1
  91. package/dist/install/motion-runtime.d.ts +0 -39
  92. package/dist/install/motion-runtime.js +0 -93
  93. package/dist/install/office-runtime.d.ts +0 -20
  94. package/dist/install/office-runtime.js +0 -42
  95. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.d.ts +0 -79
  96. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.js +0 -310
  97. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -5
  98. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/examples/readme-ab/README.md +0 -13
  99. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/components.css +0 -414
  100. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/fonts.json +0 -22
  101. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
  102. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
  103. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
  104. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
  105. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
  106. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
  107. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
  108. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
  109. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/ui.js +0 -228
  110. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ATTRIBUTION.md +0 -217
  111. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE +0 -21
  112. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/LICENSE-Apache-2.0.txt +0 -201
  113. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/MANIFEST.json +0 -869
  114. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/PROVENANCE.md +0 -24
  115. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/README.md +0 -248
  116. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/_INDEX.md +0 -191
  117. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/airbnb.md +0 -393
  118. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/airtable.md +0 -92
  119. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/apple.md +0 -250
  120. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/aside.md +0 -209
  121. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/binance.md +0 -348
  122. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/bmw.md +0 -183
  123. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/brutalist-skill.md +0 -92
  124. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/bugatti.md +0 -271
  125. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/cal.md +0 -262
  126. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/claude.md +0 -315
  127. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/clay.md +0 -307
  128. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/clickhouse.md +0 -284
  129. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/clone-from-url.md +0 -65
  130. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/cohere.md +0 -269
  131. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/coinbase.md +0 -132
  132. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/composio.md +0 -310
  133. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/cursor.md +0 -312
  134. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/design-system-architecture.md +0 -244
  135. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/elevenlabs.md +0 -268
  136. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/expo.md +0 -284
  137. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/ferrari.md +0 -317
  138. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/figma.md +0 -223
  139. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/framer.md +0 -249
  140. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/gpt-tasteskill.md +0 -74
  141. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/hashicorp.md +0 -281
  142. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/ibm.md +0 -335
  143. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/image-to-code-skill.md +0 -1228
  144. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/imagegen-brandkit.md +0 -798
  145. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/imagegen-frontend-mobile.md +0 -1465
  146. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/imagegen-frontend-web.md +0 -987
  147. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/intercom.md +0 -149
  148. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/kraken.md +0 -128
  149. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/lamborghini.md +0 -291
  150. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/layout-skill.md +0 -107
  151. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/lazyweb.md +0 -77
  152. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/linear.app.md +0 -370
  153. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/lovable.md +0 -301
  154. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/mastercard.md +0 -368
  155. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/meta.md +0 -369
  156. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/minimalist-skill.md +0 -85
  157. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/minimax.md +0 -260
  158. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/mintlify.md +0 -329
  159. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/miro.md +0 -111
  160. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/mistral.ai.md +0 -264
  161. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/mongodb.md +0 -269
  162. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/nike.md +0 -366
  163. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/notion.md +0 -312
  164. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/nvidia.md +0 -296
  165. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/ollama.md +0 -270
  166. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/opencode.ai.md +0 -284
  167. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/output-skill.md +0 -49
  168. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/pinterest.md +0 -233
  169. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/playstation.md +0 -367
  170. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/posthog.md +0 -259
  171. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/raycast.md +0 -271
  172. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/react-dev-tooling-skill.md +0 -230
  173. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/redesign-skill.md +0 -178
  174. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/renault.md +0 -314
  175. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/replicate.md +0 -264
  176. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/resend.md +0 -306
  177. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/revolut.md +0 -188
  178. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/runwayml.md +0 -247
  179. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/sanity.md +0 -360
  180. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/sentry.md +0 -265
  181. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/shopify.md +0 -353
  182. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/soft-skill.md +0 -98
  183. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/spacex.md +0 -197
  184. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/spotify.md +0 -249
  185. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/starbucks.md +0 -583
  186. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/stitch-design-example.md +0 -121
  187. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/stitch-skill.md +0 -184
  188. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/stripe.md +0 -325
  189. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/supabase.md +0 -258
  190. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/superhuman.md +0 -255
  191. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/taste-skill.md +0 -1206
  192. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/tesla.md +0 -289
  193. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/theverge.md +0 -342
  194. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/together.ai.md +0 -266
  195. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/uber.md +0 -298
  196. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/vercel.md +0 -313
  197. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/vodafone.md +0 -426
  198. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/voltagent.md +0 -326
  199. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/warp.md +0 -256
  200. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/webflow.md +0 -95
  201. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/wired.md +0 -281
  202. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/wise.md +0 -176
  203. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/x.ai.md +0 -260
  204. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/design/zapier.md +0 -331
  205. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/EVIDENCE.md +0 -97
  206. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/README.md +0 -48
  207. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/UPSTREAM.md +0 -80
  208. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/lane-a-direction.md +0 -64
  209. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/lane-b-execution.md +0 -65
  210. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/lane-c-review.md +0 -65
  211. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/lane-d-memory.md +0 -83
  212. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/orchestration.md +0 -80
  213. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/routing.md +0 -79
  214. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/LICENSE +0 -21
  215. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
  216. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/content-writer.md +0 -132
  217. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/design-builder.md +0 -109
  218. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/design-critic.md +0 -89
  219. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/design-lead.md +0 -113
  220. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/design-scout.md +0 -78
  221. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/design-strategist.md +0 -121
  222. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
  223. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/inspiration-scout.md +0 -107
  224. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/agents/motion-designer.md +0 -120
  225. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/accessible-content/reference.md +0 -101
  226. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
  227. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
  228. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-debate/reference.md +0 -199
  229. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
  230. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-handoff/reference.md +0 -125
  231. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-md/reference.md +0 -106
  232. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
  233. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-review/reference.md +0 -123
  234. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
  235. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
  236. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
  237. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
  238. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
  239. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/interaction-design/reference.md +0 -122
  240. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
  241. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/research-planning/reference.md +0 -96
  242. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
  243. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
  244. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
  245. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/taste-report/reference.md +0 -78
  246. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/token-architecture/reference.md +0 -75
  247. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/ui-composition/reference.md +0 -117
  248. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/usability-testing/reference.md +0 -78
  249. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
  250. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
  251. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
  252. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/perfection/README.md +0 -160
  253. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/perfection/react-perf-tooling.md +0 -127
  254. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/README.md +0 -659
  255. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/charts.csv +0 -26
  256. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/colors.csv +0 -162
  257. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/icons.csv +0 -106
  258. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/landing.csv +0 -35
  259. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/products.csv +0 -162
  260. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/react-performance.csv +0 -45
  261. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/astro.csv +0 -54
  262. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/flutter.csv +0 -53
  263. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
  264. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
  265. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/nextjs.csv +0 -53
  266. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
  267. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
  268. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/react-native.csv +0 -52
  269. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/react.csv +0 -54
  270. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/shadcn.csv +0 -61
  271. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/svelte.csv +0 -54
  272. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/swiftui.csv +0 -51
  273. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/stacks/vue.csv +0 -50
  274. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/styles.csv +0 -85
  275. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/typography.csv +0 -74
  276. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/ui-reasoning.csv +0 -162
  277. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/ux-guidelines.csv +0 -100
  278. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/data/web-interface.csv +0 -31
  279. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/scripts/core.py +0 -262
  280. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/scripts/design_system.py +0 -1148
  281. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/_canonical-corpus/ui-ux-db/scripts/search.py +0 -114
  282. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/adaptive-layout.md +0 -23
  283. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -29
  284. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/canonical-library.md +0 -42
  285. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +0 -391
  286. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/composition.md +0 -24
  287. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +0 -103
  288. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/creative-directions.md +0 -20
  289. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -71
  290. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/design-choice.md +0 -19
  291. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/evidence-review.md +0 -29
  292. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/house-styles.md +0 -235
  293. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/implementation-platforms.md +0 -25
  294. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/inclusive-interface.md +0 -23
  295. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/interaction-motion.md +0 -27
  296. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +0 -123
  297. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/operating-lanes.md +0 -22
  298. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/performance-delivery.md +0 -23
  299. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +0 -47
  300. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/product-direction.md +0 -23
  301. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +0 -25
  302. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/redesign-playbook.md +0 -29
  303. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +0 -98
  304. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/system-foundations.md +0 -27
  305. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/taste-direction.md +0 -27
  306. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-language.md +0 -23
  307. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -19
  308. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/schemas/design-contract.v1alpha1.json +0 -299
  309. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/schemas/design-contract.v1beta1.json +0 -32
  310. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/schemas/design-contract.v1beta2.json +0 -34
  311. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/canonical-json.mjs +0 -186
  312. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
  313. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/hover-probe.mjs +0 -28
  314. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/lock-probe.mjs +0 -196
  315. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +0 -441
  316. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
  317. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +0 -307
  318. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/route-mode.mjs +0 -19
  319. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +0 -149
  320. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/serve-static.mjs +0 -24
  321. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/stable-file-read.mjs +0 -201
  322. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -555
  323. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/verify-canonical-corpus.mjs +0 -354
  324. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/NOTICE +0 -33
  325. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
  326. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
  327. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
  328. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
  329. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
  330. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
  331. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
  332. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
  333. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
  334. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
  335. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
  336. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
  337. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
  338. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
  339. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
  340. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
  341. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
  342. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
  343. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
  344. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
  345. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
  346. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
  347. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
  348. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
  349. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
  350. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
  351. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
  352. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
  353. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
  354. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
  355. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
  356. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
  357. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
  358. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
  359. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
  360. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
  361. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
  362. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
  363. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
  364. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
  365. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
  366. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
  367. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
  368. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
  369. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
  370. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
  371. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
  372. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
  373. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
  374. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
  375. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
  376. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
  377. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
  378. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
  379. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
  380. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
  381. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
  382. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
  383. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
  384. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
  385. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
  386. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
  387. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
  388. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
  389. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
  390. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
  391. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
  392. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
  393. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
  394. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
  395. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
  396. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
  397. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
  398. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
  399. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
  400. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
  401. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
  402. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
  403. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
  404. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
  405. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
  406. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
  407. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
  408. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
  409. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
  410. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
  411. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
  412. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
  413. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
  414. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
  415. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
  416. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
  417. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
  418. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
  419. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
  420. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
  421. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
  422. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
  423. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
  424. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
  425. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
  426. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
  427. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
  428. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
  429. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
  430. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
  431. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
  432. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
  433. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
  434. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
  435. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
  436. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
  437. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
  438. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
  439. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
  440. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
  441. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
  442. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
  443. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
  444. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
  445. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
  446. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
  447. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
  448. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
  449. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
  450. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
  451. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
  452. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
  453. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
  454. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
  455. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
  456. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
  457. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
  458. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
  459. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
  460. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
  461. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
  462. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
  463. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
  464. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
  465. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
  466. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
  467. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
  468. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
  469. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
  470. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
  471. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
  472. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
  473. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
  474. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
  475. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
  476. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
  477. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
  478. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
  479. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
  480. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
  481. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
  482. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
  483. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
  484. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
  485. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
  486. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
  487. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
  488. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
  489. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
  490. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
  491. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
  492. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
  493. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
  494. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
  495. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
  496. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
  497. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
  498. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
  499. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
  500. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
  501. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
  502. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
  503. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
  504. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
  505. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
  506. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
  507. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
  508. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
  509. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  510. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
  511. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/icons.html +0 -231
  512. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/index.html +0 -1
  513. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
  514. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
  515. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
  516. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
  517. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
  518. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
  519. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
  520. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
  521. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
  522. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
  523. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
  524. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
  525. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
  526. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
  527. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
  528. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
  529. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
  530. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
  531. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
  532. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
  533. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
  534. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
  535. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
  536. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
  537. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
  538. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
  539. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
  540. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
  541. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
  542. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/accessibility.md +0 -37
  543. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/export.md +0 -29
  544. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
  545. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
  546. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
  547. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/import-schema.md +0 -28
  548. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
  549. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/motion.md +0 -29
  550. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
  551. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/output-spec.md +0 -48
  552. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
  553. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
  554. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
  555. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
  556. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/profiles.md +0 -24
  557. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
  558. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +0 -76
  559. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
  560. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bar.md +0 -51
  561. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
  562. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
  563. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-bump.md +0 -49
  564. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
  565. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
  566. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
  567. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
  568. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
  569. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
  570. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
  571. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
  572. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-er.md +0 -49
  573. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
  574. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
  575. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
  576. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
  577. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
  578. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
  579. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
  580. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
  581. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
  582. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
  583. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-journey.md +0 -54
  584. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
  585. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-layers.md +0 -54
  586. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-line.md +0 -54
  587. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
  588. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-loop.md +0 -54
  589. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
  590. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
  591. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-nested.md +0 -59
  592. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
  593. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
  594. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-polar.md +0 -67
  595. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
  596. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-process.md +0 -58
  597. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
  598. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
  599. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
  600. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
  601. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-radar.md +0 -57
  602. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
  603. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
  604. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
  605. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
  606. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
  607. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
  608. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
  609. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-state.md +0 -59
  610. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
  611. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
  612. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
  613. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
  614. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
  615. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +0 -54
  616. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
  617. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
  618. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-venn.md +0 -51
  619. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
  620. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
  621. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +0 -60
  622. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
  623. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
  624. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
  625. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
  626. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
  627. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -29
  628. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
  629. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
  630. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
  631. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/export.mjs +0 -123
  632. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
  633. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
  634. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
  635. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
  636. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
  637. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
  638. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
  639. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
  640. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
  641. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
  642. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -36
  643. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
  644. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
  645. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
  646. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
  647. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
  648. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
  649. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
  650. package/marketplace/plugins/litcodex/skills/lit-docx/LICENSE +0 -21
  651. package/marketplace/plugins/litcodex/skills/lit-docx/NOTICE +0 -3
  652. package/marketplace/plugins/litcodex/skills/lit-docx/references/components.md +0 -113
  653. package/marketplace/plugins/litcodex/skills/lit-docx/references/direction-step.md +0 -167
  654. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/01-report-ko.md +0 -95
  655. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/02-brief-ko.md +0 -45
  656. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/03-manual-ko.md +0 -105
  657. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/04-proposal-ko.md +0 -97
  658. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/05-memo-en.md +0 -34
  659. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/06-journal-en.md +0 -89
  660. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/07-report-en.md +0 -101
  661. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/08-proposal-en.md +0 -94
  662. package/marketplace/plugins/litcodex/skills/lit-docx/references/examples/09-memo-ko.md +0 -34
  663. package/marketplace/plugins/litcodex/skills/lit-docx/references/frontmatter_schema.md +0 -42
  664. package/marketplace/plugins/litcodex/skills/lit-docx/references/journal_style_spec.md +0 -17
  665. package/marketplace/plugins/litcodex/skills/lit-docx/references/markdown_quality_checklist.md +0 -37
  666. package/marketplace/plugins/litcodex/skills/lit-docx/references/page-composition.md +0 -141
  667. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
  668. package/marketplace/plugins/litcodex/skills/lit-docx/references/slop_rules.md +0 -35
  669. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/brief.md +0 -70
  670. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/journal.md +0 -73
  671. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/manual.md +0 -70
  672. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/memo.md +0 -75
  673. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/proposal.md +0 -71
  674. package/marketplace/plugins/litcodex/skills/lit-docx/references/tonalities/report.md +0 -83
  675. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.in +0 -5
  676. package/marketplace/plugins/litcodex/skills/lit-docx/runtime/requirements.lock +0 -20
  677. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/clean_markdown.py +0 -95
  678. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1389
  679. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -311
  680. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/convert_pdf.py +0 -130
  681. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_craft.py +0 -218
  682. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_design.py +0 -2446
  683. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/docx_layout.py +0 -960
  684. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/edit_docx.py +0 -297
  685. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/embed_images.py +0 -78
  686. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/generate_docx_templates.py +0 -491
  687. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/slop_lint.py +0 -488
  688. package/marketplace/plugins/litcodex/skills/lit-docx/scripts/visual_audit.py +0 -41
  689. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/acs.docx +0 -0
  690. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  691. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/ieee.docx +0 -0
  692. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  693. package/marketplace/plugins/litcodex/skills/lit-docx/templates/docx/nature.docx +0 -0
  694. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/README.md +0 -5
  695. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/acs/template.tex +0 -39
  696. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
  697. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/elsevier/template.tex +0 -40
  698. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/README.md +0 -5
  699. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/ieee/template.tex +0 -39
  700. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
  701. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -39
  702. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/README.md +0 -5
  703. package/marketplace/plugins/litcodex/skills/lit-docx/templates/latex/nature/template.tex +0 -39
  704. package/marketplace/plugins/litcodex/skills/lit-docx/templates/registry.yaml +0 -1366
  705. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/brief.yaml +0 -27
  706. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
  707. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/manual.yaml +0 -25
  708. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
  709. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
  710. package/marketplace/plugins/litcodex/skills/lit-docx/templates/tonalities/report.yaml +0 -26
  711. package/marketplace/plugins/litcodex/skills/lit-pptx/FORBIDDEN_TERMS.json +0 -55
  712. package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +0 -8
  713. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/analyst.md +0 -49
  714. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/antithesis.md +0 -59
  715. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/architect.md +0 -44
  716. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/critic.md +0 -42
  717. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/synthesizer.md +0 -47
  718. package/marketplace/plugins/litcodex/skills/lit-pptx/agents/thesis.md +0 -33
  719. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  720. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  721. package/marketplace/plugins/litcodex/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  722. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Black.otf +0 -0
  723. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Bold.otf +0 -0
  724. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Light.otf +0 -0
  725. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Medium.otf +0 -0
  726. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/A2Z-Regular.otf +0 -0
  727. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/OFL.txt +0 -94
  728. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/a2z-font/SOURCE.md +0 -29
  729. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  730. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  731. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
  732. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/SOURCE.md +0 -21
  733. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/LICENSE.txt +0 -94
  734. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/Pretendard-Bold.otf +0 -0
  735. package/marketplace/plugins/litcodex/skills/lit-pptx/pretendard-font/public/static/Pretendard-Regular.otf +0 -0
  736. package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +0 -78
  737. package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +0 -148
  738. package/marketplace/plugins/litcodex/skills/lit-pptx/references/consensus-protocol.md +0 -125
  739. package/marketplace/plugins/litcodex/skills/lit-pptx/references/data-display-cookbook.md +0 -45
  740. package/marketplace/plugins/litcodex/skills/lit-pptx/references/density-and-fill.md +0 -193
  741. package/marketplace/plugins/litcodex/skills/lit-pptx/references/design-system-azure.md +0 -58
  742. package/marketplace/plugins/litcodex/skills/lit-pptx/references/direction-step.md +0 -221
  743. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -185
  744. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/02-pitch-studio-en.md +0 -162
  745. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -229
  746. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/04-research-talk-paper-en.md +0 -212
  747. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/05-research-keynote-night-ko.md +0 -191
  748. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -175
  749. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -241
  750. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/08-field-report-atlas-ko.md +0 -168
  751. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -219
  752. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/10-status-update-ledger-en.md +0 -157
  753. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/11-portfolio-studio-ko.md +0 -183
  754. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/12-tutorial-chalk-en.md +0 -176
  755. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/13-status-update-gazette-ko.md +0 -157
  756. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/14-engineering-review-computational-brutalism-ko.md +0 -173
  757. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/15-launch-pitch-neo-brutalism-ko.md +0 -154
  758. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/16-design-lecture-bauhaus-ko.md +0 -139
  759. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/17-community-programme-riso-ko.md +0 -158
  760. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/18-public-data-briefing-newsroom-ko.md +0 -179
  761. package/marketplace/plugins/litcodex/skills/lit-pptx/references/interview-protocol.md +0 -113
  762. package/marketplace/plugins/litcodex/skills/lit-pptx/references/layout-families.md +0 -225
  763. package/marketplace/plugins/litcodex/skills/lit-pptx/references/title-treatments.md +0 -150
  764. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/atlas.md +0 -113
  765. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/bauhaus.md +0 -136
  766. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/chalk.md +0 -115
  767. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -145
  768. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/gazette.md +0 -118
  769. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/ledger.md +0 -129
  770. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -155
  771. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/newsroom.md +0 -141
  772. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/night.md +0 -126
  773. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/paper.md +0 -109
  774. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/riso.md +0 -133
  775. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/signal.md +0 -121
  776. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/studio.md +0 -111
  777. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +0 -795
  778. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +0 -13
  779. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.in +0 -2
  780. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/requirements.lock +0 -14
  781. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/check_ooxml.py +0 -40
  782. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +0 -447
  783. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +0 -931
  784. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +0 -213
  785. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/inventory.py +0 -125
  786. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/learn_template.py +0 -433
  787. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
  788. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
  789. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/font-map.js +0 -79
  790. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-bg.js +0 -85
  791. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -36
  792. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
  793. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
  794. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
  795. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -358
  796. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2238
  797. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-pack.js +0 -3365
  798. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
  799. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
  800. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
  801. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
  802. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +0 -177
  803. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/package.json +0 -1
  804. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +0 -869
  805. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/render_pages.py +0 -124
  806. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/validate_pptx.py +0 -221
  807. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
  808. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -207
  809. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
  810. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
  811. package/marketplace/plugins/litcodex/skills/lit-pptx/specs/template-enrollment-contract.md +0 -379
  812. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/bauhaus_light.css +0 -4
  813. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/boilerplate_professional.css +0 -508
  814. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
  815. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
  816. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
  817. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
  818. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -464
  819. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
  820. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
  821. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
  822. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
  823. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
  824. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
  825. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
  826. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
  827. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
  828. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
  829. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -100
  830. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -92
  831. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -93
  832. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
  833. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
  834. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
  835. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
  836. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
  837. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
  838. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
  839. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
  840. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
  841. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
  842. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
  843. package/marketplace/plugins/litcodex/skills/lit-schematic/references/cutaway-outputs.md +0 -70
  844. package/marketplace/plugins/litcodex/skills/lit-schematic/references/isometric-craft.md +0 -101
  845. package/marketplace/plugins/litcodex/skills/lit-schematic/references/journal-figures.md +0 -72
  846. package/marketplace/plugins/litcodex/skills/lit-schematic/references/kit-api.md +0 -134
  847. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pfd-and-layout.md +0 -53
  848. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-drafting.md +0 -103
  849. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-symbols.md +0 -163
  850. package/marketplace/plugins/litcodex/skills/lit-schematic/references/verification.md +0 -100
  851. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/doctor.mjs +0 -57
  852. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
  853. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/fonts.mjs +0 -28
  854. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
  855. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
  856. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
  857. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
  858. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
  859. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
  860. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/png.mjs +0 -132
  861. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
  862. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/route.mjs +0 -218
  863. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
  864. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
  865. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
  866. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/motion.mjs +0 -129
  867. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/qa.mjs +0 -92
  868. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/render.mjs +0 -233
  869. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/scaffold.mjs +0 -60
  870. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/scripts/dependency-preflight.py +0 -233
  871. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/NOTICE +0 -23
  872. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -48
  873. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/assets.mjs +0 -388
  874. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender/runner.py +0 -221
  875. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender.mjs +0 -132
  876. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/board.mjs +0 -142
  877. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/browser-app.js +0 -735
  878. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/completion.mjs +0 -9
  879. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/compose.mjs +0 -255
  880. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +0 -308
  881. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-assets.mjs +0 -116
  882. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-capture.mjs +0 -162
  883. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-gate.mjs +0 -327
  884. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-image.mjs +0 -136
  885. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-init.js +0 -55
  886. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-sheet.mjs +0 -69
  887. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-treatment.mjs +0 -137
  888. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-worker.mjs +0 -21
  889. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover.mjs +0 -367
  890. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +0 -187
  891. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/encode.mjs +0 -163
  892. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/flash.mjs +0 -251
  893. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/fonts.mjs +0 -180
  894. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gallery.mjs +0 -147
  895. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gate.mjs +0 -466
  896. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/house.mjs +0 -45
  897. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +0 -356
  898. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +0 -341
  899. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/loop-kit.js +0 -104
  900. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/passes.mjs +0 -181
  901. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/presets.mjs +0 -110
  902. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/report.mjs +0 -56
  903. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +0 -410
  904. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/safe-read.mjs +0 -32
  905. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scaffold.mjs +0 -208
  906. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scenes.mjs +0 -309
  907. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/score.mjs +0 -668
  908. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +0 -606
  909. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +0 -198
  910. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-init.js +0 -215
  911. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +0 -655
  912. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +0 -154
  913. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +0 -412
  914. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +0 -366
  915. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +0 -29
  916. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +0 -527
  917. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stroke.mjs +0 -264
  918. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/styles.mjs +0 -233
  919. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/timeline.mjs +0 -153
  920. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +0 -558
  921. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/type.mjs +0 -234
  922. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/util.mjs +0 -198
  923. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
  924. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
  925. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
  926. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
  927. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/webp.mjs +0 -140
  928. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt400.ttf +0 -0
  929. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt700.ttf +0 -0
  930. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-wt900.ttf +0 -0
  931. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt400.ttf +0 -0
  932. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt700.ttf +0 -0
  933. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-wt900.ttf +0 -0
  934. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt400.ttf +0 -0
  935. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt700.ttf +0 -0
  936. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-wt900.ttf +0 -0
  937. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
  938. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/archivo/SHA256SUMS +0 -16
  939. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
  940. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
  941. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -6
  942. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
  943. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
  944. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
  945. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
  946. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
  947. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -86
  948. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
  949. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  950. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -33
  951. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
  952. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
  953. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -42
  954. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
  955. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -27
  956. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
  957. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -29
  958. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
  959. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -44
  960. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -67
  961. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -182
  962. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -95
  963. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -231
  964. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -67
  965. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -103
  966. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/cover.md +0 -426
  967. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/depth.md +0 -156
  968. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/design-choice.md +0 -22
  969. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +0 -163
  970. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +0 -69
  971. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/scene-author.md +0 -57
  972. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/sound.md +0 -87
  973. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +0 -213
  974. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/studio.md +0 -246
  975. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +0 -103
  976. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +0 -141
  977. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/type-and-timing.md +0 -83
  978. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package-lock.json +0 -59
  979. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/package.json +0 -1
  980. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +0 -1085
  981. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/word-timing-models.json +0 -11
  982. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/beat-grid.py +0 -50
  983. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +0 -886
  984. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/runtime.mjs +0 -43
  985. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/paper.json +0 -185
  986. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/swiss-signal.json +0 -188
  987. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/terminalcore.json +0 -182
  988. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/tidal.json +0 -187
  989. package/marketplace/plugins/litcodex/skills/readme-studio/references/decoration-patterns.md +0 -36
  990. package/marketplace/plugins/litcodex/skills/readme-studio/references/facts-and-assembly.md +0 -36
  991. package/marketplace/plugins/litcodex/skills/readme-studio/references/motion-and-delivery.md +0 -47
  992. package/marketplace/plugins/litcodex/skills/readme-studio/references/typography-and-imagery.md +0 -34
  993. package/marketplace/plugins/litcodex/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -130
  994. package/marketplace/plugins/litcodex/skills/readme-studio/templates/cover-source.json +0 -35
  995. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/index.html +0 -61
  996. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -6
  997. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
  998. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package.json +0 -14
  999. package/marketplace/plugins/litcodex/skills/readme-studio/templates/readme-cover-section.md +0 -85
  1000. package/marketplace/plugins/litcodex/skills/readme-studio/templates/readme-facts.json +0 -11
  1001. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
  1002. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package.json +0 -18
  1003. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/ReadmeCover.tsx +0 -102
  1004. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/Root.tsx +0 -48
  1005. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -4
  1006. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/layout.ts +0 -35
  1007. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/src/motion.ts +0 -25
  1008. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/package-lock.json +0 -133
  1009. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/package.json +0 -8
  1010. package/marketplace/plugins/litcodex/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -238
  1011. package/marketplace/plugins/litcodex/skills/visual-qa/references/capture-playbook.md +0 -141
  1012. package/marketplace/plugins/litcodex/skills/visual-qa/references/complete-contract.md +0 -389
  1013. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/design-contract.v1alpha1.json +0 -299
  1014. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/design-contract.v1beta1.json +0 -32
  1015. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/design-contract.v1beta2.json +0 -34
  1016. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/evidence-manifest.v1alpha1.json +0 -117
  1017. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/evidence-manifest.v1beta1.json +0 -80
  1018. package/marketplace/plugins/litcodex/skills/visual-qa/schemas/review-receipt.v1alpha1.json +0 -57
  1019. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/ansi.mjs +0 -71
  1020. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/cli.mjs +0 -54
  1021. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/east-asian-width.mjs +0 -31
  1022. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/entrypoint.mjs +0 -1
  1023. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/evidence-bytes.mjs +0 -61
  1024. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/image-diff.mjs +0 -63
  1025. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/png-crc.mjs +0 -19
  1026. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/png-decode.mjs +0 -169
  1027. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/strict-input.mjs +0 -241
  1028. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/tui-grid.mjs +0 -117
  1029. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/types.mjs +0 -7
  1030. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/validate-design-contract.mjs +0 -547
  1031. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/validate-evidence.mjs +0 -392
  1032. package/marketplace/plugins/litcodex/skills/visual-qa/scripts/validate-review-receipt.mjs +0 -79
  1033. package/marketplace/plugins/litcodex/vendor/licenses/045_scientific-visualization-MIT.txt +0 -21
  1034. package/marketplace/plugins/litcodex/vendor/provenance/045_scientific-visualization.md +0 -42
  1035. package/marketplace/plugins/litcodex/vendor/scientific-visualization/SKILL.md +0 -283
  1036. package/marketplace/plugins/litcodex/vendor/scientific-visualization/assets/color_palettes.py +0 -197
  1037. package/marketplace/plugins/litcodex/vendor/scientific-visualization/assets/nature.mplstyle +0 -75
  1038. package/marketplace/plugins/litcodex/vendor/scientific-visualization/assets/presentation.mplstyle +0 -74
  1039. package/marketplace/plugins/litcodex/vendor/scientific-visualization/assets/publication.mplstyle +0 -78
  1040. package/marketplace/plugins/litcodex/vendor/scientific-visualization/evals/evals.json +0 -158
  1041. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/color_palettes.md +0 -380
  1042. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/journal_requirements.md +0 -359
  1043. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/matplotlib_examples.md +0 -608
  1044. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
  1045. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/publication_guidelines.md +0 -217
  1046. package/marketplace/plugins/litcodex/vendor/scientific-visualization/references/seaborn_for_publications.md +0 -293
  1047. package/marketplace/plugins/litcodex/vendor/scientific-visualization/scripts/figure_export.py +0 -238
  1048. package/marketplace/plugins/litcodex/vendor/scientific-visualization/scripts/style_presets.py +0 -467
  1049. package/marketplace/plugins/litcodex/vendor/scientific-visualization/tests/test_figure_export.py +0 -51
  1050. package/marketplace/plugins/litcodex/vendor/scientific-visualization/tests/test_style_presets.py +0 -114
  1051. package/node_modules/@litcodex/lit-loop/dist/motion-gate.d.ts +0 -79
  1052. package/node_modules/@litcodex/lit-loop/dist/motion-gate.js +0 -310
  1053. package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/scripts/dependency-preflight.py +0 -233
  1054. package/node_modules/@litcodex/lit-loop/vendor/licenses/045_scientific-visualization-MIT.txt +0 -21
  1055. package/node_modules/@litcodex/lit-loop/vendor/provenance/045_scientific-visualization.md +0 -42
  1056. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/SKILL.md +0 -283
  1057. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/assets/color_palettes.py +0 -197
  1058. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/assets/nature.mplstyle +0 -75
  1059. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/assets/presentation.mplstyle +0 -74
  1060. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/assets/publication.mplstyle +0 -78
  1061. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/evals/evals.json +0 -158
  1062. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/color_palettes.md +0 -380
  1063. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/journal_requirements.md +0 -359
  1064. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/matplotlib_examples.md +0 -608
  1065. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
  1066. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/publication_guidelines.md +0 -217
  1067. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/references/seaborn_for_publications.md +0 -293
  1068. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/scripts/figure_export.py +0 -238
  1069. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/scripts/style_presets.py +0 -467
  1070. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/tests/test_figure_export.py +0 -51
  1071. package/node_modules/@litcodex/lit-loop/vendor/scientific-visualization/tests/test_style_presets.py +0 -114
@@ -1,2238 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * render-adapter-pptx.js — Render a resolved slide spec to a PPTX file.
5
- *
6
- * Architecture: Each text line is its own separate shape (individual addText()
7
- * call). Bullet items use manual "• " prefix in green (#00AE41) Bold 16pt.
8
- * Section headers are separate shapes in Bold 18pt black.
9
- *
10
- * Input: resolved spec from layout-resolver, templateObj from registry, output path.
11
- * Output: writes a .pptx file via pptxgenjs.
12
- */
13
-
14
- const fs = require("fs");
15
- const os = require("os");
16
- const path = require("path");
17
- const { extractContent, looksLikeKpi } = require("./layout-resolver");
18
- const { LEGACY_TOKENS } = require("./template-registry");
19
-
20
- // Narrowest a KPI badge can be and still read as one glance (template token kpi.minCardWidth).
21
- let KPI_MIN_CARD_WIDTH_IN = LEGACY_TOKENS.kpi.minCardWidth;
22
- let KPI_GAP = LEGACY_TOKENS.kpi.gap;
23
-
24
- const TOOLKIT_ROOT = path.resolve(__dirname, "../..");
25
- const ASSETS_MEDIA = path.join(TOOLKIT_ROOT, "assets", "media");
26
- const ASSETS_AZURE = path.join(TOOLKIT_ROOT, "assets", "azure");
27
-
28
- /** Resolve a decoration asset path: explicit absolute override (custom-accent
29
- * regenerated gradients), then d.dir "azure" → assets/azure, else assets/media. */
30
- function decorAssetPath(d) {
31
- if (d.assetPath) return d.assetPath;
32
- if (d.dir === "azure") return path.join(ASSETS_AZURE, d.asset);
33
- return path.join(ASSETS_MEDIA, d.asset);
34
- }
35
- const hex = (c) => (c || "#000000").replace("#", "");
36
-
37
- function linkedTableCell(text, options) {
38
- const original = cleanMd(text);
39
- let display = original;
40
- let url = null;
41
- const markdown = original.match(/\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/i);
42
- if (markdown) {
43
- display = original.replace(markdown[0], markdown[1]);
44
- url = markdown[2];
45
- } else {
46
- const rawUrl = original.match(/https?:\/\/[^\s<>\])}]+/i);
47
- const doi = original.match(/\b10\.\d{4,9}\/[^\s<>\])}]+/i);
48
- if (rawUrl) url = rawUrl[0].replace(/[.,;:]+$/, "");
49
- else if (doi) url = `https://doi.org/${doi[0].replace(/[.,;:]+$/, "")}`;
50
- }
51
- return {
52
- text: display,
53
- options: {
54
- ...options,
55
- ...(url ? { hyperlink: { url } } : {}),
56
- },
57
- };
58
- }
59
-
60
- // ── Text style constants (defaults; every template reassigns them in render()).
61
- // These are reassigned from the template at the start of render() so the same
62
- // adapter serves any enrolled template (e.g. BOILERPLATE-PRETENDARD).
63
- let FONT_BOLD = "Pretendard";
64
- let FONT_MEDIUM = "Pretendard";
65
- let FONT_LIGHT = "Pretendard";
66
- let CHAR_SPACING = -0.7;
67
- // Chart colours and faces for templates without the rich palette; set per render().
68
- let PLAIN_CHART_STYLE = { series: ["3C3836", "689D6A", "D79921", "B16286"], ink: "3C3836", ink_muted: "6E6256", line: "CBC2B5", titleFont: "Pretendard", bodyFont: "Pretendard" };
69
-
70
- function expandHome(p) {
71
- if (p === "~") return os.homedir();
72
- if (p && p.startsWith(`~${path.sep}`)) return path.join(os.homedir(), p.slice(2));
73
- return p;
74
- }
75
-
76
- function resolveImagePath(src, sourceDir) {
77
- if (!src) throw new Error("Image source is empty");
78
- const expanded = expandHome(src);
79
- const candidates = [];
80
- if (path.isAbsolute(expanded)) candidates.push(expanded);
81
- else {
82
- if (sourceDir) candidates.push(path.resolve(sourceDir, expanded));
83
- candidates.push(path.resolve(process.cwd(), expanded));
84
- candidates.push(path.join(ASSETS_MEDIA, expanded));
85
- candidates.push(path.resolve(TOOLKIT_ROOT, expanded));
86
- }
87
- const found = candidates.find((candidate) => fs.existsSync(candidate));
88
- if (!found) {
89
- throw new Error(`Image not found: ${src}. Checked: ${candidates.join(", ")}`);
90
- }
91
- return found;
92
- }
93
-
94
- function readImageSize(filePath) {
95
- const buf = fs.readFileSync(filePath);
96
- if (buf.length >= 24 && buf.toString("ascii", 1, 4) === "PNG") {
97
- return { width: buf.readUInt32BE(16), height: buf.readUInt32BE(20) };
98
- }
99
- if (buf.length >= 4 && buf[0] === 0xff && buf[1] === 0xd8) {
100
- let offset = 2;
101
- while (offset + 9 < buf.length) {
102
- if (buf[offset] !== 0xff) { offset++; continue; }
103
- const marker = buf[offset + 1];
104
- const length = buf.readUInt16BE(offset + 2);
105
- if (length < 2) break;
106
- if ((marker >= 0xc0 && marker <= 0xc3) || (marker >= 0xc5 && marker <= 0xc7) ||
107
- (marker >= 0xc9 && marker <= 0xcb) || (marker >= 0xcd && marker <= 0xcf)) {
108
- return { width: buf.readUInt16BE(offset + 7), height: buf.readUInt16BE(offset + 5) };
109
- }
110
- offset += 2 + length;
111
- }
112
- }
113
- return null;
114
- }
115
-
116
- function containBox(x, y, w, h, imageSize) {
117
- if (!imageSize || !imageSize.width || !imageSize.height) return { x, y, w, h };
118
- const boxRatio = w / h;
119
- const imageRatio = imageSize.width / imageSize.height;
120
- if (imageRatio > boxRatio) {
121
- const fittedH = w / imageRatio;
122
- return { x, y: y + (h - fittedH) / 2, w, h: fittedH };
123
- }
124
- const fittedW = h * imageRatio;
125
- return { x: x + (w - fittedW) / 2, y, w: fittedW, h };
126
- }
127
-
128
- // Bullet items. Geometry comes from the template's tokens (bullet.*, secHeader.*, summary.*,
129
- // toc.*), reassigned in render(); these defaults are the legacy values.
130
- let BULLET_COLOR = "1D4ED8"; // bullet color (reassigned per template)
131
- let SECTION_ACCENT = "1D4ED8"; // section-card / accent color (reassigned per template)
132
- const BULLET_PREFIX = "\u2022 "; // "• " (bullet + two spaces)
133
- let BULLET_X = LEGACY_TOKENS.bullet.x;
134
- let BULLET_W = LEGACY_TOKENS.bullet.w;
135
-
136
- // Section headers
137
- let SEC_HEADER_FONT = FONT_BOLD;
138
- let SEC_HEADER_SIZE = LEGACY_TOKENS.secHeader.size;
139
- const SEC_HEADER_COLOR = "000000";
140
- let SEC_HEADER_X = LEGACY_TOKENS.secHeader.x;
141
- let SEC_HEADER_W = LEGACY_TOKENS.secHeader.w;
142
- let SEC_HEADER_H = LEGACY_TOKENS.secHeader.h;
143
-
144
- // Summary (narrow width)
145
- let SUMMARY_HEADER_W = LEGACY_TOKENS.summary.headerW;
146
- let SUMMARY_BULLET_W = LEGACY_TOKENS.summary.bulletW;
147
- let SUMMARY_BULLET_SIZE = LEGACY_TOKENS.summary.bulletSize;
148
- let SUMMARY_BULLET_H = LEGACY_TOKENS.summary.bulletH;
149
- let SUMMARY_BULLET_Y_SPACING = LEGACY_TOKENS.summary.ySpacing;
150
- let SUMMARY_BULLET_LINE_SPACING = LEGACY_TOKENS.summary.lineSpacing;
151
-
152
- // TOC items (separate shapes)
153
- let TOC_FONT = FONT_BOLD;
154
- let TOC_SIZE = LEGACY_TOKENS.toc.size;
155
- const TOC_COLOR = "000000";
156
- let TOC_X = LEGACY_TOKENS.toc.x;
157
- let TOC_W = LEGACY_TOKENS.toc.w;
158
- let TOC_H = LEGACY_TOKENS.toc.h;
159
- let TOC_Y_START = LEGACY_TOKENS.toc.yStart;
160
- let TOC_Y_SPACING = LEGACY_TOKENS.toc.ySpacing;
161
-
162
- /** Reassign the token-driven geometry from the template's pack (legacy values when absent). */
163
- function applyTokens(tokens) {
164
- const t = tokens || LEGACY_TOKENS;
165
- ({ x: BULLET_X, w: BULLET_W } = t.bullet);
166
- ({ size: SEC_HEADER_SIZE, x: SEC_HEADER_X, w: SEC_HEADER_W, h: SEC_HEADER_H } = t.secHeader);
167
- ({ headerW: SUMMARY_HEADER_W, bulletW: SUMMARY_BULLET_W, bulletSize: SUMMARY_BULLET_SIZE, bulletH: SUMMARY_BULLET_H,
168
- ySpacing: SUMMARY_BULLET_Y_SPACING, lineSpacing: SUMMARY_BULLET_LINE_SPACING } = t.summary);
169
- ({ size: TOC_SIZE, x: TOC_X, w: TOC_W, h: TOC_H, yStart: TOC_Y_START, ySpacing: TOC_Y_SPACING } = t.toc);
170
- ({ pad: CARD_PAD, chip: CARD_CHIP, minH: CARD_MIN_H, gap: CARD_GAP, radius: CARD_RADIUS } = t.card);
171
- ({ minCardWidth: KPI_MIN_CARD_WIDTH_IN, gap: KPI_GAP } = t.kpi);
172
- NOTICE = { ...t.notice };
173
- }
174
-
175
- function weightedTextLength(text) {
176
- let total = 0;
177
- for (const ch of String(text || "")) {
178
- if (/\s/.test(ch)) total += 0.35;
179
- else if (/^[\x00-\x7F]$/.test(ch)) total += 0.58;
180
- else total += 1.0;
181
- }
182
- return total;
183
- }
184
-
185
- function estimateWrappedLines(text, widthIn, fontSize) {
186
- const usablePt = Math.max(12, (widthIn || 4) * 72 - 10);
187
- // Conservative on purpose: PowerPoint wraps dense mixed
188
- // Korean-English strings earlier than a naive ASCII width estimate.
189
- const unitsPerLine = Math.max(4, usablePt / Math.max(4, fontSize * 0.95));
190
- return Math.max(1, Math.ceil(weightedTextLength(text) / unitsPerLine));
191
- }
192
-
193
- function estimateTextHeight(text, widthIn, fontSize, lineSpacingMultiple) {
194
- const lines = estimateWrappedLines(text, widthIn, fontSize);
195
- return Math.max(0.14, ((lines * fontSize * lineSpacingMultiple) / 72) * 1.4 + 0.08);
196
- }
197
-
198
- function bodyElements(items) {
199
- const elements = [];
200
- let numberedCounter = 0;
201
- for (const item of items) {
202
- if (item.type === "section") {
203
- elements.push({ kind: "section", text: item.heading || "" });
204
- numberedCounter = 0;
205
- for (const child of item.children || []) {
206
- numberedCounter++;
207
- elements.push({ kind: "numbered", text: `(${numberedCounter}) ${child.text || ""}` });
208
- }
209
- } else if (item.type === "bullet") {
210
- elements.push({ kind: "bullet", text: item.text || "" });
211
- numberedCounter = 0;
212
- for (const child of item.children || []) {
213
- numberedCounter++;
214
- elements.push({ kind: "numbered", text: `(${numberedCounter}) ${child.text || ""}` });
215
- }
216
- } else if (item.type === "numbered") {
217
- numberedCounter++;
218
- elements.push({ kind: "numbered", text: `(${numberedCounter}) ${item.text || ""}` });
219
- } else if (item.type === "text") {
220
- elements.push({ kind: "text", text: item.text || "" });
221
- }
222
- }
223
- return elements;
224
- }
225
-
226
- function chooseBodyStyle(items, widthIn, startY, bottomY) {
227
- const available = Math.max(0.5, (bottomY || 7.0) - startY);
228
- const sizes = [16, 15, 14, 13];
229
- for (const bodySize of sizes) {
230
- const sectionSize = Math.min(18, bodySize + 2);
231
- const lineSpacing = bodySize <= 10 ? 1.05 : 1.18;
232
- const gap = bodySize <= 10 ? 0.035 : 0.05;
233
- const total = bodyElements(items).reduce((sum, el) => {
234
- const size = el.kind === "section" ? sectionSize : bodySize;
235
- const w = el.kind === "section" ? Math.min(widthIn, SEC_HEADER_W) : widthIn;
236
- return sum + estimateTextHeight(el.text, w, size, lineSpacing) + gap;
237
- }, 0);
238
- if (total <= available) return { bodySize, sectionSize, lineSpacing, gap };
239
- }
240
- return { bodySize: 13, sectionSize: 15, lineSpacing: 1.08, gap: 0.04 };
241
- }
242
-
243
- function estimateSectionHeight(item, secW, bulletW, style) {
244
- let total = estimateTextHeight(item.heading || "", secW, style.sectionSize, style.lineSpacing) + style.gap;
245
- let numberedCounter = 0;
246
- for (const child of item.children || []) {
247
- numberedCounter++;
248
- total += estimateTextHeight(`(${numberedCounter}) ${child.text || ""}`, bulletW, style.bodySize, style.lineSpacing) + style.gap;
249
- }
250
- return total + 0.12;
251
- }
252
-
253
- function addSectionCard(slide, x, y, w, h) {
254
- slide.addShape("rect", {
255
- x,
256
- y: y - 0.035,
257
- w,
258
- h: Math.max(0.28, h),
259
- fill: { color: "F7F9F8", transparency: 12 },
260
- line: { color: "D8E2DD", width: 0.5, transparency: 20 },
261
- });
262
- }
263
-
264
- function bodyItemsToDiagnosticLines(items) {
265
- const lines = [];
266
- let numberedCounter = 0;
267
- for (const item of items || []) {
268
- if (item.type === "section") {
269
- lines.push(`■ ${item.heading || ""}`);
270
- numberedCounter = 0;
271
- for (const child of item.children || []) {
272
- numberedCounter++;
273
- lines.push(`(${numberedCounter}) ${child.text || ""}`);
274
- }
275
- } else if (item.type === "bullet") {
276
- lines.push(`• ${item.text || ""}`);
277
- numberedCounter = 0;
278
- for (const child of item.children || []) {
279
- numberedCounter++;
280
- lines.push(`(${numberedCounter}) ${child.text || ""}`);
281
- }
282
- } else if (item.type === "numbered") {
283
- numberedCounter++;
284
- lines.push(`(${numberedCounter}) ${item.text || ""}`);
285
- } else if (item.type === "text") {
286
- lines.push(item.text || "");
287
- }
288
- }
289
- return lines.filter(Boolean);
290
- }
291
-
292
- function bodyItemsToDiagnosticCards(items) {
293
- const cards = [];
294
- let numberedCounter = 0;
295
- for (const item of items || []) {
296
- if (item.type === "section" || item.type === "bullet") {
297
- const title = item.heading || item.text || "";
298
- const body = [];
299
- numberedCounter = 0;
300
- for (const child of item.children || []) {
301
- numberedCounter++;
302
- body.push(`(${numberedCounter}) ${child.text || ""}`);
303
- }
304
- if (title || body.length) cards.push({ title, body });
305
- } else if (item.type === "numbered") {
306
- numberedCounter++;
307
- cards.push({ title: `(${numberedCounter})`, body: [item.text || ""] });
308
- } else if (item.type === "text" && item.text) {
309
- cards.push({ title: "", body: [item.text] });
310
- }
311
- }
312
- return cards;
313
- }
314
-
315
- function splitLinesByWeight(lines, columns) {
316
- const groups = Array.from({ length: columns }, () => []);
317
- const weights = Array(columns).fill(0);
318
- for (const line of lines) {
319
- let target = 0;
320
- for (let i = 1; i < columns; i++) {
321
- if (weights[i] < weights[target]) target = i;
322
- }
323
- groups[target].push(line);
324
- weights[target] += Math.max(20, weightedTextLength(line));
325
- }
326
- return groups;
327
- }
328
-
329
- function splitCardsByWeight(cards, columns) {
330
- const groups = Array.from({ length: columns }, () => []);
331
- const weights = Array(columns).fill(0);
332
- for (const card of cards) {
333
- let target = 0;
334
- for (let i = 1; i < columns; i++) {
335
- if (weights[i] < weights[target]) target = i;
336
- }
337
- groups[target].push(card);
338
- const cardWeight = weightedTextLength(card.title || "") * 1.4
339
- + (card.body || []).reduce((sum, line) => sum + weightedTextLength(line), 0);
340
- weights[target] += Math.max(80, cardWeight);
341
- }
342
- return groups;
343
- }
344
-
345
- function renderDiagnosticCard(slide, card, x, y, w, h, idx) {
346
- slide.addShape("rect", {
347
- x,
348
- y,
349
- w,
350
- h,
351
- fill: { color: idx % 2 ? "F8FAF9" : "F3F6F4", transparency: 2 },
352
- line: { color: "D6E2DB", width: 0.35, transparency: 12 },
353
- });
354
- slide.addShape("rect", {
355
- x,
356
- y,
357
- w: 0.028,
358
- h,
359
- fill: { color: SECTION_ACCENT, transparency: 0 },
360
- line: { color: SECTION_ACCENT, transparency: 100 },
361
- });
362
-
363
- const padX = 0.055;
364
- const padY = 0.05;
365
- const titleH = card.title ? Math.min(0.28, Math.max(0.18, h * 0.16)) : 0;
366
- if (card.title) {
367
- slide.addText(card.title, {
368
- x: x + padX,
369
- y: y + padY,
370
- w: w - padX * 1.45,
371
- h: titleH,
372
- fontFace: FONT_BOLD,
373
- fontSize: 7.4,
374
- color: "002554",
375
- charSpacing: -0.25,
376
- fit: "shrink",
377
- margin: 0.01,
378
- breakLine: false,
379
- valign: "top",
380
- });
381
- }
382
-
383
- const bodyText = (card.body || []).join("\n");
384
- if (bodyText) {
385
- slide.addText(bodyText, {
386
- x: x + padX,
387
- y: y + padY + titleH + 0.015,
388
- w: w - padX * 1.45,
389
- h: Math.max(0.16, h - titleH - padY * 1.6),
390
- fontFace: FONT_MEDIUM,
391
- fontSize: 5.85,
392
- color: "1F1F1F",
393
- charSpacing: -0.18,
394
- fit: "shrink",
395
- margin: 0.008,
396
- paraSpaceAfterPt: 0,
397
- lineSpacingMultiple: 0.96,
398
- breakLine: false,
399
- valign: "top",
400
- });
401
- }
402
- }
403
-
404
- function estimateDiagnosticCardHeight(card, w) {
405
- const padY = 0.05;
406
- const titleH = card.title ? 0.24 : 0;
407
- const bodyText = (card.body || []).join("\n");
408
- const bodyH = bodyText ? estimateTextHeight(bodyText, Math.max(0.8, w - 0.12), 5.85, 1.02) : 0;
409
- return Math.max(0.56, Math.min(2.35, padY * 2 + titleH + bodyH));
410
- }
411
-
412
- function renderCramStressBody(slide, items, pageH) {
413
- const cards = bodyItemsToDiagnosticCards(items);
414
- const columns = 3;
415
- const groups = cards.length ? splitCardsByWeight(cards, columns) : splitLinesByWeight(bodyItemsToDiagnosticLines(items), columns).map((group) => [{ title: "", body: group }]);
416
- const x = 0.28;
417
- const y = 0.98;
418
- const w = 7.78;
419
- const h = pageH - y - 0.34;
420
- const gap = 0.105;
421
- const colW = (w - gap * (columns - 1)) / columns;
422
- groups.forEach((group, idx) => {
423
- const colX = x + idx * (colW + gap);
424
- const cardGap = 0.075;
425
- const availableH = h - cardGap * Math.max(0, group.length - 1);
426
- const desiredHeights = group.map((card) => estimateDiagnosticCardHeight(card, colW));
427
- const desiredTotal = desiredHeights.reduce((sum, value) => sum + value, 0) || 1;
428
- const scale = desiredTotal > availableH ? availableH / desiredTotal : 1;
429
- let cursorY = y;
430
- group.forEach((card, cardIdx) => {
431
- const remainingCards = group.length - cardIdx - 1;
432
- const rawH = desiredHeights[cardIdx] * scale;
433
- const cardH = Math.max(0.62, Math.min(rawH, h - (cursorY - y) - remainingCards * (0.62 + cardGap)));
434
- renderDiagnosticCard(slide, card, colX, cursorY, colW, cardH, idx + cardIdx);
435
- cursorY += cardH + cardGap;
436
- });
437
- });
438
- }
439
-
440
- function renderCramStressImageSheet(slide, content, sourceDir, pageW, pageH) {
441
- if (!content) return;
442
- const images = content.type === "image-grid"
443
- ? (Array.isArray(content.images) ? content.images : [])
444
- : content.type === "image" ? [content] : [];
445
- if (images.length === 0) return;
446
- const x = 8.24;
447
- const y = 0.98;
448
- const w = pageW - x - 0.25;
449
- const h = pageH - y - 0.34;
450
- const cols = images.length >= 8 ? 2 : 1;
451
- const rows = Math.ceil(images.length / cols);
452
- const gap = 0.04;
453
- const cellW = (w - gap * (cols - 1)) / cols;
454
- const headerH = 0.28;
455
- const sheetH = Math.min(h - 0.9, rows * 0.58 + gap * (rows - 1));
456
- const cellH = (sheetH - gap * (rows - 1)) / rows;
457
- const noteY = y + headerH + sheetH + 0.16;
458
- const noteH = Math.min(1.0, h - (noteY - y) - 0.08);
459
- const panelH = noteY - y + noteH;
460
- slide.addShape("rect", {
461
- x: x - 0.04,
462
- y: y - 0.04,
463
- w: w + 0.08,
464
- h: panelH + 0.08,
465
- fill: { color: "F5F8F6", transparency: 0 },
466
- line: { color: "CAD4CE", width: 0.5 },
467
- });
468
- slide.addText("RAW EVIDENCE CONTACT SHEET", {
469
- x,
470
- y: y + 0.02,
471
- w,
472
- h: 0.16,
473
- fontFace: FONT_BOLD,
474
- fontSize: 5.8,
475
- color: "002554",
476
- charSpacing: -0.15,
477
- fit: "shrink",
478
- margin: 0,
479
- });
480
- slide.addShape("rect", {
481
- x,
482
- y: y + 0.22,
483
- w,
484
- h: 0,
485
- line: { color: SECTION_ACCENT, width: 0.45 },
486
- });
487
- images.forEach((image, idx) => {
488
- const imgPath = resolveImagePath(image.src, sourceDir);
489
- const col = idx % cols;
490
- const row = Math.floor(idx / cols);
491
- const fit = containBox(
492
- x + col * (cellW + gap),
493
- y + headerH + row * (cellH + gap),
494
- cellW,
495
- cellH,
496
- readImageSize(imgPath),
497
- );
498
- slide.addImage({
499
- path: imgPath,
500
- ...fit,
501
- altText: image.caption || path.basename(image.src || imgPath),
502
- });
503
- });
504
- slide.addShape("rect", {
505
- x,
506
- y: noteY,
507
- w,
508
- h: noteH,
509
- fill: { color: "FFFFFF", transparency: 0 },
510
- line: { color: "D6E2DB", width: 0.35, transparency: 20 },
511
- });
512
- slide.addText("diagnostic cram-stress\nmicrotext is intentional\nproduction decks must synthesize\noverflow / marker / missing media = fail", {
513
- x: x + 0.06,
514
- y: noteY + 0.07,
515
- w: w - 0.12,
516
- h: Math.max(0.24, noteH - 0.14),
517
- fontFace: FONT_MEDIUM,
518
- fontSize: 5.3,
519
- color: "333333",
520
- charSpacing: -0.15,
521
- fit: "shrink",
522
- margin: 0.01,
523
- breakLine: false,
524
- lineSpacingMultiple: 1.02,
525
- valign: "mid",
526
- });
527
- }
528
-
529
- function isCramStressDeck(resolved) {
530
- const meta = (resolved && resolved.deck && resolved.deck.metadata) || {};
531
- return String(meta.render_mode || meta.renderMode || "").toLowerCase() === "cram-stress";
532
- }
533
-
534
- function renderCramStressSlide(slide, slideSpec, pageW, pageH, sourceDir) {
535
- const regions = slideSpec.regions || {};
536
- const title = regions.title && regions.title.content;
537
- if (title) {
538
- slide.addText(String(title), {
539
- x: 0.24,
540
- y: 0.24,
541
- w: pageW - 1.72,
542
- h: 0.46,
543
- fontFace: FONT_BOLD,
544
- fontSize: 13.5,
545
- color: "000000",
546
- charSpacing: CHAR_SPACING,
547
- fit: "shrink",
548
- });
549
- slide.addShape("rect", {
550
- x: 0.24,
551
- y: 0.76,
552
- w: pageW - 0.48,
553
- h: 0,
554
- line: { color: SECTION_ACCENT, width: 1.2 },
555
- });
556
- }
557
- if (regions.body && regions.body.content && regions.body.content.type === "body") {
558
- renderCramStressBody(slide, regions.body.content.items || [], pageH);
559
- }
560
- if (regions.image && regions.image.content) {
561
- renderCramStressImageSheet(slide, regions.image.content, sourceDir, pageW, pageH);
562
- }
563
- }
564
-
565
- function shouldUseDenseBodyFlow(items, widthIn, startY, bottomY) {
566
- const elements = bodyElements(items);
567
- const charCount = elements.reduce((sum, el) => sum + String(el.text || "").length, 0);
568
- const available = Math.max(0.5, (bottomY || 7.0) - startY);
569
- const estimatedAtMin = elements.reduce((sum, el) => {
570
- const size = el.kind === "section" ? 12.8 : 11.5;
571
- return sum + estimateTextHeight(el.text, Math.max(1.8, widthIn / 2), size, 1.02) + 0.025;
572
- }, 0);
573
- return widthIn >= 4.4 && (elements.length >= 18 || charCount >= 2400 || estimatedAtMin > available * 1.35);
574
- }
575
-
576
- function chooseDenseBodyStyle() {
577
- return { bodySize: 11.5, sectionSize: 12.8, lineSpacing: 1.02, gap: 0.025 };
578
- }
579
-
580
- // ── Font role helpers ───────────────────────────────────────────────────────
581
-
582
- /**
583
- * Build font role map from template capabilities.
584
- * Maps YAML field names to pptxgenjs option names.
585
- */
586
- function buildFontRoles(templateObj) {
587
- if (!templateObj || !templateObj.capabilities || !templateObj.capabilities.font_roles) {
588
- return {};
589
- }
590
-
591
- const roles = {};
592
- for (const [name, def] of Object.entries(templateObj.capabilities.font_roles)) {
593
- roles[name] = {
594
- font: def.font,
595
- size: def.size,
596
- color: (def.color || "#000000").replace("#", ""),
597
- align: def.align || "left",
598
- charSpacing: def.char_spacing,
599
- lineSpacing: def.line_spacing,
600
- bold: def.bold,
601
- spaceAfter: def.space_after,
602
- bulletType: def.bullet_type,
603
- bulletChar: def.bullet_char,
604
- bulletFont: def.bullet_font,
605
- numberType: def.number_type,
606
- marL: def.marL,
607
- indent: def.indent,
608
- fill: def.fill ? def.fill.replace("#", "") : undefined,
609
- borderColor: def.border_color ? def.border_color.replace("#", "") : undefined,
610
- borderWidth: def.border_width,
611
- };
612
- }
613
- return roles;
614
- }
615
-
616
- // ── Decoration rendering ────────────────────────────────────────────────────
617
-
618
- /**
619
- * Add decoration elements to a pptxgenjs slide.
620
- * Note: slide_number is intentionally omitted — the reference template has none.
621
- */
622
- function addDecorations(slide, decorations, fontRoles) {
623
- if (!decorations || !Array.isArray(decorations)) return;
624
-
625
- for (const d of decorations) {
626
- if (d.type === "image") {
627
- slide.addImage({
628
- path: decorAssetPath(d),
629
- x: d.x || 0,
630
- y: d.y || 0,
631
- w: d.w || 1,
632
- h: d.h || 1,
633
- rotate: d.rotate || undefined,
634
- altText: d.asset || "template-image",
635
- });
636
-
637
- } else if (d.type === "rect" || d.type === "roundRect" || d.type === "pill") {
638
- // Solid color block / rounded card / full-radius pill. Optional text label.
639
- const shape = d.type === "rect" ? "rect" : "roundRect";
640
- const opts = {
641
- x: d.x || 0, y: d.y || 0, w: d.w || 1, h: d.h || 0.5,
642
- };
643
- if (d.fill) opts.fill = { color: hex(d.fill), transparency: d.alpha || 0 };
644
- else opts.fill = { type: "none" };
645
- if (d.line) opts.line = { color: hex(d.line), width: d.line_width || 1 };
646
- else opts.line = { type: "none" };
647
- if (shape === "roundRect") opts.rectRadius = d.type === "pill" ? (d.h || 0.5) / 2 : (d.radius != null ? d.radius : 0.12);
648
- slide.addShape(shape, opts);
649
- if (d.text) {
650
- slide.addText(d.text, {
651
- x: d.x || 0, y: d.y || 0, w: d.w || 1, h: d.h || 0.5,
652
- fontFace: d.font || FONT_BOLD, fontSize: d.size || 12,
653
- color: hex(d.text_color || "#FFFFFF"), bold: !!d.bold,
654
- align: d.align || "center", valign: "middle",
655
- charSpacing: d.char_spacing != null ? d.char_spacing : CHAR_SPACING,
656
- });
657
- }
658
-
659
- } else if (d.type === "ellipse" || d.type === "ring") {
660
- const opts = { x: d.x || 0, y: d.y || 0, w: d.w || 1, h: d.h || (d.w || 1) };
661
- if (d.type === "ring" || !d.fill) {
662
- opts.fill = { type: "none" };
663
- opts.line = { color: hex(d.line || d.color || "#FFFFFF"), width: d.line_width || 2 };
664
- } else {
665
- opts.fill = { color: hex(d.fill), transparency: d.alpha || 0 };
666
- opts.line = { type: "none" };
667
- }
668
- slide.addShape("ellipse", opts);
669
-
670
- } else if (d.type === "text") {
671
- slide.addText(d.text || "", {
672
- x: d.x || 0, y: d.y || 0, w: d.w || 4, h: d.h || 1,
673
- fontFace: d.font || FONT_BOLD, fontSize: d.size || 14,
674
- color: hex(d.color || "#000000"), bold: !!d.bold,
675
- align: d.align || "left", valign: d.valign || "top",
676
- charSpacing: d.char_spacing != null ? d.char_spacing : CHAR_SPACING,
677
- transparency: d.transparency != null ? d.transparency : undefined,
678
- });
679
-
680
- } else if (d.type === "line") {
681
- slide.addShape("rect", {
682
- x: d.x || 0,
683
- y: d.y || 0,
684
- w: d.w || 1,
685
- h: 0,
686
- line: { color: (d.color || "#000000").replace("#", ""), width: d.width || 1 },
687
- });
688
-
689
- } else if (d.type === "confidential_mark") {
690
- const role = fontRoles.confidential_mark || {};
691
- const mX = d.x || 0, mY = d.y || 0, mW = d.w || 1, mH = d.h || 0.3;
692
- const bColor = role.borderColor || "C00000";
693
- const bPt = role.borderWidth || 1;
694
- slide.addShape("rect", {
695
- x: mX, y: mY, w: mW, h: mH,
696
- line: { color: bColor, width: bPt },
697
- });
698
- slide.addText(d.text || "Confidential", {
699
- x: mX, y: mY, w: mW, h: mH,
700
- fontFace: role.font || FONT_MEDIUM,
701
- fontSize: role.size || 14,
702
- color: role.color || "C00000",
703
- align: role.align || "center",
704
- valign: "middle",
705
- });
706
-
707
- } else if (d.type === "disclaimer") {
708
- const role = fontRoles.disclaimer || {};
709
- slide.addText(
710
- d.text || "※ 본 문서는 대외비입니다.",
711
- {
712
- x: d.x || 0,
713
- y: d.y || 0,
714
- w: d.w || 1,
715
- h: d.h || 0.2,
716
- fontFace: role.font || FONT_LIGHT,
717
- fontSize: role.size || 6,
718
- color: role.color || "666666",
719
- align: role.align || "left",
720
- }
721
- );
722
- }
723
- // slide_number intentionally removed — reference template has none
724
- }
725
- }
726
-
727
- // ── Body shape rendering (individual shapes per line) ────────────────────
728
-
729
- /**
730
- * Add body items as individual shapes to a slide.
731
- * Each section header and bullet item is a separate positioned shape.
732
- *
733
- * @param {object} slide - pptxgenjs slide
734
- * @param {Array} items - AST items (section, bullet, numbered, text)
735
- * @param {number} startY - Starting y position
736
- * @param {number} maxX - Max width for positioning
737
- * @returns {number} The y position after the last item
738
- */
739
- function addBodyShapes(slide, items, startY, maxX, bottomY, originX) {
740
- const denseFlow = shouldUseDenseBodyFlow(items, maxX, startY, bottomY || 7.0);
741
- const columns = denseFlow ? 2 : 1;
742
- const colGap = denseFlow ? 0.16 : 0;
743
- const colW = (maxX - colGap * (columns - 1)) / columns;
744
- let col = 0;
745
- let y = startY;
746
- // Template regions have always drawn body text at the template's own left
747
- // margin. A placed box carries its own, and passes it here.
748
- const baseX = originX != null ? originX : SEC_HEADER_X;
749
- const bodyIndent = denseFlow ? 0.13 : (BULLET_X - SEC_HEADER_X);
750
- const BODY_FULL_W = 10.188;
751
- const scale = colW / BODY_FULL_W;
752
- const secW = denseFlow ? Math.max(1.4, colW - 0.04) : SEC_HEADER_W * scale;
753
- const bulletW = denseFlow ? Math.max(1.2, colW - bodyIndent - 0.02) : BULLET_W * scale;
754
- let numberedCounter = 0;
755
- const style = denseFlow ? chooseDenseBodyStyle() : chooseBodyStyle(items, bulletW, startY, bottomY || 7.0);
756
-
757
- function colX() { return baseX + col * (colW + colGap); }
758
- function secX() { return colX(); }
759
- function bulletX() { return colX() + bodyIndent; }
760
- function maybeAdvanceColumn(nextHeight) {
761
- if (!denseFlow || col >= columns - 1) return;
762
- if (y + nextHeight > (bottomY || 7.0)) {
763
- col++;
764
- y = startY;
765
- }
766
- }
767
-
768
- for (const item of items) {
769
- if (item.type === "section") {
770
- const sectionH = estimateTextHeight(item.heading, secW, style.sectionSize, style.lineSpacing);
771
- const cardH = estimateSectionHeight(item, secW, bulletW, style);
772
- maybeAdvanceColumn(Math.min(cardH, sectionH + 0.2));
773
- addSectionCard(slide, secX() - 0.035, y - 0.03, Math.max(secW, bulletW + bodyIndent) + 0.07, cardH);
774
- // Section header — separate shape, black, 1.5 line spacing
775
- slide.addText(mdRuns(item.heading, {
776
- fontFace: SEC_HEADER_FONT,
777
- fontSize: style.sectionSize,
778
- color: SEC_HEADER_COLOR,
779
- charSpacing: CHAR_SPACING,
780
- }), {
781
- x: secX(),
782
- y: y,
783
- w: secW,
784
- h: sectionH,
785
- lineSpacingMultiple: style.lineSpacing,
786
- });
787
- y += sectionH + style.gap;
788
-
789
- // Numbered children with (1)(2)(3) format
790
- if (item.children) {
791
- numberedCounter = 0;
792
- for (const child of item.children) {
793
- numberedCounter++;
794
- const numPrefix = `(${numberedCounter}) `;
795
- const text = numPrefix + cleanMd(child.text);
796
- const h = estimateTextHeight(text, bulletW, style.bodySize, style.lineSpacing);
797
- maybeAdvanceColumn(h);
798
- slide.addText([
799
- { text: numPrefix, options: { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING } },
800
- ...mdRuns(child.text, { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING }),
801
- ], {
802
- x: bulletX(),
803
- y: y,
804
- w: bulletW,
805
- h,
806
- lineSpacingMultiple: style.lineSpacing,
807
- });
808
- y += h + style.gap;
809
- }
810
- }
811
- y += 0.08;
812
-
813
- } else if (item.type === "bullet") {
814
- const h = estimateTextHeight(item.text, bulletW, style.bodySize, style.lineSpacing);
815
- maybeAdvanceColumn(h);
816
- // Bullet item — green prefix + black text
817
- slide.addText([
818
- { text: BULLET_PREFIX, options: { fontFace: FONT_BOLD, fontSize: style.bodySize, color: BULLET_COLOR, charSpacing: CHAR_SPACING } },
819
- ...mdRuns(item.text, { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING }),
820
- ], {
821
- x: bulletX(),
822
- y: y,
823
- w: bulletW,
824
- h,
825
- lineSpacingMultiple: style.lineSpacing,
826
- });
827
- y += h + style.gap;
828
-
829
- // Children (numbered sub-items)
830
- if (item.children) {
831
- numberedCounter = 0;
832
- for (const child of item.children) {
833
- numberedCounter++;
834
- const numPrefix = `(${numberedCounter}) `;
835
- const text = numPrefix + cleanMd(child.text);
836
- const childH = estimateTextHeight(text, bulletW, style.bodySize, style.lineSpacing);
837
- maybeAdvanceColumn(childH);
838
- slide.addText([
839
- { text: numPrefix, options: { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING } },
840
- ...mdRuns(child.text, { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING }),
841
- ], {
842
- x: bulletX(),
843
- y: y,
844
- w: bulletW,
845
- h: childH,
846
- lineSpacingMultiple: style.lineSpacing,
847
- });
848
- y += childH + style.gap;
849
- }
850
- }
851
-
852
- } else if (item.type === "numbered") {
853
- numberedCounter++;
854
- const numPrefix = `(${numberedCounter}) `;
855
- const text = numPrefix + cleanMd(item.text);
856
- const h = estimateTextHeight(text, bulletW, style.bodySize, style.lineSpacing);
857
- maybeAdvanceColumn(h);
858
- slide.addText([
859
- { text: numPrefix, options: { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING } },
860
- ...mdRuns(item.text, { fontFace: FONT_MEDIUM, fontSize: style.bodySize, color: "000000", charSpacing: CHAR_SPACING }),
861
- ], {
862
- x: bulletX(),
863
- y: y,
864
- w: bulletW,
865
- h,
866
- lineSpacingMultiple: style.lineSpacing,
867
- });
868
- y += h + style.gap;
869
-
870
- } else if (item.type === "text") {
871
- const h = estimateTextHeight(item.text, bulletW, style.bodySize, style.lineSpacing);
872
- maybeAdvanceColumn(h);
873
- slide.addText(mdRuns(item.text, {
874
- fontFace: FONT_MEDIUM,
875
- fontSize: style.bodySize,
876
- color: "000000",
877
- charSpacing: CHAR_SPACING,
878
- }), {
879
- x: bulletX(),
880
- y: y,
881
- w: bulletW,
882
- h,
883
- lineSpacingMultiple: style.lineSpacing,
884
- });
885
- y += h + style.gap;
886
- }
887
- }
888
-
889
- return y;
890
- }
891
-
892
- /**
893
- * Add summary group content as individual shapes.
894
- * Uses narrow width (~4.3" for headers, ~4.1" for bullets).
895
- */
896
- function addSummaryShapes(slide, content, region) {
897
- let y = region.y || 1.04;
898
-
899
- // Group heading
900
- if (content.heading) {
901
- slide.addText(mdRuns(content.heading, {
902
- fontFace: SEC_HEADER_FONT,
903
- fontSize: SEC_HEADER_SIZE,
904
- color: SEC_HEADER_COLOR,
905
- charSpacing: CHAR_SPACING,
906
- }), {
907
- x: region.x || 0.39,
908
- y: y,
909
- w: SUMMARY_HEADER_W,
910
- h: SEC_HEADER_H,
911
- });
912
- y += SEC_HEADER_H + 0.08;
913
- }
914
-
915
- // Items
916
- if (content.items) {
917
- for (const item of content.items) {
918
- if (item.type === "section") {
919
- // Section header
920
- slide.addText(mdRuns(item.heading, {
921
- fontFace: SEC_HEADER_FONT,
922
- fontSize: SEC_HEADER_SIZE,
923
- color: SEC_HEADER_COLOR,
924
- charSpacing: CHAR_SPACING,
925
- }), {
926
- x: region.x || 0.39,
927
- y: y,
928
- w: SUMMARY_HEADER_W,
929
- h: SEC_HEADER_H,
930
- });
931
- y += SEC_HEADER_H + 0.05;
932
-
933
- // Children as bullet items
934
- if (item.children) {
935
- for (const child of item.children) {
936
- slide.addText([
937
- { text: BULLET_PREFIX, options: { fontFace: FONT_BOLD, fontSize: SUMMARY_BULLET_SIZE, color: BULLET_COLOR, charSpacing: CHAR_SPACING } },
938
- ...mdRuns(child.text, { fontFace: FONT_MEDIUM, fontSize: SUMMARY_BULLET_SIZE, color: "000000", charSpacing: CHAR_SPACING }),
939
- ], {
940
- x: 0.59,
941
- y: y,
942
- w: SUMMARY_BULLET_W,
943
- h: SUMMARY_BULLET_H,
944
- lineSpacingMultiple: SUMMARY_BULLET_LINE_SPACING,
945
- });
946
- y += SUMMARY_BULLET_Y_SPACING;
947
- }
948
- }
949
-
950
- } else if (item.type === "bullet") {
951
- slide.addText([
952
- { text: BULLET_PREFIX, options: { fontFace: FONT_BOLD, fontSize: SUMMARY_BULLET_SIZE, color: BULLET_COLOR, charSpacing: CHAR_SPACING } },
953
- ...mdRuns(item.text, { fontFace: FONT_MEDIUM, fontSize: SUMMARY_BULLET_SIZE, color: "000000", charSpacing: CHAR_SPACING }),
954
- ], {
955
- x: 0.59,
956
- y: y,
957
- w: SUMMARY_BULLET_W,
958
- h: SUMMARY_BULLET_H,
959
- lineSpacingMultiple: SUMMARY_BULLET_LINE_SPACING,
960
- });
961
- y += SUMMARY_BULLET_Y_SPACING;
962
-
963
- if (item.children) {
964
- for (const child of item.children) {
965
- slide.addText([
966
- { text: BULLET_PREFIX, options: { fontFace: FONT_BOLD, fontSize: SUMMARY_BULLET_SIZE, color: BULLET_COLOR, charSpacing: CHAR_SPACING } },
967
- ...mdRuns(child.text, { fontFace: FONT_MEDIUM, fontSize: SUMMARY_BULLET_SIZE, color: "000000", charSpacing: CHAR_SPACING }),
968
- ], {
969
- x: 0.59,
970
- y: y,
971
- w: SUMMARY_BULLET_W,
972
- h: SUMMARY_BULLET_H,
973
- lineSpacingMultiple: SUMMARY_BULLET_LINE_SPACING,
974
- });
975
- y += SUMMARY_BULLET_Y_SPACING;
976
- }
977
- }
978
-
979
- } else if (item.type === "numbered") {
980
- slide.addText([
981
- { text: BULLET_PREFIX, options: { fontFace: FONT_BOLD, fontSize: SUMMARY_BULLET_SIZE, color: BULLET_COLOR, charSpacing: CHAR_SPACING } },
982
- ...mdRuns(item.text, { fontFace: FONT_MEDIUM, fontSize: SUMMARY_BULLET_SIZE, color: "000000", charSpacing: CHAR_SPACING }),
983
- ], {
984
- x: 0.59,
985
- y: y,
986
- w: SUMMARY_BULLET_W,
987
- h: SUMMARY_BULLET_H,
988
- lineSpacingMultiple: SUMMARY_BULLET_LINE_SPACING,
989
- });
990
- y += SUMMARY_BULLET_Y_SPACING;
991
- }
992
- }
993
- }
994
- }
995
-
996
- // ── TOC rendering (separate shapes per item) ─────────────────────────────
997
-
998
- /**
999
- * Add TOC items as separate text shapes, matching TEMPLATE-PPTX.pptx exactly.
1000
- * Each item is: "N. text" in the bold face at 18pt, w=7.5, h=0.55, spaced 0.65" apart.
1001
- */
1002
- function addTocShapes(slide, items) {
1003
- let y = TOC_Y_START;
1004
- let num = 1;
1005
-
1006
- for (const item of items) {
1007
- const text = `${num}. ${cleanMd(item.text || item.heading || "")}`;
1008
- slide.addText(text, {
1009
- x: TOC_X,
1010
- y: y,
1011
- w: TOC_W,
1012
- h: TOC_H,
1013
- fontFace: TOC_FONT,
1014
- fontSize: TOC_SIZE,
1015
- color: TOC_COLOR,
1016
- charSpacing: CHAR_SPACING,
1017
- });
1018
- y += TOC_Y_SPACING;
1019
- num++;
1020
- }
1021
- }
1022
-
1023
- /**
1024
- * Check if a slide is a TOC slide by inspecting the title region content.
1025
- */
1026
- function isTocSlide(regions) {
1027
- const title = regions.title;
1028
- if (!title || typeof title.content !== "string") return false;
1029
- return title.content.includes("목차");
1030
- }
1031
-
1032
- function adjustedRegionsForImageColumn(regions) {
1033
- const body = regions.body;
1034
- const image = regions.image;
1035
- if (!body || !image || !body.content || !image.content) return regions;
1036
- if (body.content.type !== "body" || !["image", "image-grid"].includes(image.content.type)) return regions;
1037
-
1038
- const bodyX = body.x || 0;
1039
- const bodyW = body.w || 10.188;
1040
- const imageX = image.x || 0;
1041
- const gap = 0.25;
1042
- if (imageX <= bodyX || imageX >= bodyX + bodyW) return regions;
1043
-
1044
- const denseImageGrid = image.content.type === "image-grid" && Array.isArray(image.content.images) && image.content.images.length >= 6;
1045
- return {
1046
- ...regions,
1047
- body: {
1048
- ...body,
1049
- w: Math.max(0.5, imageX - bodyX - gap),
1050
- },
1051
- image: denseImageGrid ? {
1052
- ...image,
1053
- y: Math.min(image.y || 1.5, 1.08),
1054
- h: Math.max(image.h || 3.0, 5.85),
1055
- } : image,
1056
- figure_caption: denseImageGrid && regions.figure_caption ? {
1057
- ...regions.figure_caption,
1058
- y: Math.max(regions.figure_caption.y || 4.55, 7.02),
1059
- } : regions.figure_caption,
1060
- };
1061
- }
1062
-
1063
- // ── Region rendering ────────────────────────────────────────────────────────
1064
-
1065
- /**
1066
- * Add a region as a positioned element on the slide.
1067
- *
1068
- * Content types:
1069
- * - string: title, main-box, notes
1070
- * - { type: "body" } bullet/section/numbered items → individual shapes
1071
- * - { type: "kpi-table" } table with headers and rows
1072
- * - { type: "image" } image element
1073
- * - { type: "figure-caption" } figure caption (auto-numbered "도 N.")
1074
- * - { type: "table-caption" } table caption (auto-numbered "표 N.")
1075
- * - { type: "summary-group" } heading + items → individual shapes
1076
- */
1077
- function addRegion(slide, name, region, fontRoles, pageH, regionBottom, isToc, sourceDir) {
1078
- if (!region) return;
1079
-
1080
- const content = region.content;
1081
- if (content === undefined || content === null || (typeof content === "string" && !content.trim())) return;
1082
- if (typeof content === "object" && !content.type) return;
1083
-
1084
- const roleName = region.font_role || region.heading_role || region.sub_item_role;
1085
- const role = fontRoles[roleName] || {};
1086
-
1087
- // ── String content (title, main-box, notes) ────────────────────────
1088
- if (typeof content === "string") {
1089
- const opts = {
1090
- x: region.x || 0,
1091
- y: region.y || 0,
1092
- w: region.w || 4,
1093
- h: region.h || ((regionBottom || (pageH - 0.5)) - (region.y || 0)),
1094
- fontFace: role.font || FONT_BOLD,
1095
- fontSize: role.size || 16,
1096
- color: (role.color || "000000").replace("#", ""),
1097
- align: region.align || role.align || "left",
1098
- valign: region.valign || "top",
1099
- };
1100
-
1101
- if (role.charSpacing != null) opts.charSpacing = role.charSpacing;
1102
- if (role.lineSpacing) opts.lineSpacingMultiple = role.lineSpacing;
1103
-
1104
- // Border (main_box)
1105
- if (region.border) {
1106
- opts.line = {
1107
- color: (region.border.color || "#000000").replace("#", ""),
1108
- width: region.border.width || 1,
1109
- };
1110
- }
1111
-
1112
- // Autofit
1113
- if (region.autofit === "resize") opts.autoFit = true;
1114
- else if (region.autofit === "shrink") opts.shrinkText = true;
1115
-
1116
- slide.addText(mdRuns(content, {
1117
- fontFace: opts.fontFace,
1118
- fontSize: opts.fontSize,
1119
- color: opts.color,
1120
- ...(opts.charSpacing != null ? { charSpacing: opts.charSpacing } : {}),
1121
- }), name === "title" ? { ...opts, objectName: "title@legacy" } : opts);
1122
- return;
1123
- }
1124
-
1125
- // ── Body content → TOC shapes or individual shapes ──────────────────
1126
- if (content.type === "body") {
1127
- if (isToc) {
1128
- addTocShapes(slide, content.items || []);
1129
- } else {
1130
- const startY = region.y || 1.044;
1131
- addBodyShapes(slide, content.items || [], startY, region.w || 10.188, regionBottom || pageH - 0.5, region.originX);
1132
- }
1133
- return;
1134
- }
1135
-
1136
- // ── KPI Table ──────────────────────────────────────────────────────
1137
- if (content.type === "kpi-table" && content.chart) {
1138
- renderChart(slide, content, region, PLAIN_CHART_STYLE, regionBottom);
1139
- return;
1140
- }
1141
- if (content.type === "kpi-table") {
1142
- const numeric = numericColumns(content.headers || [], content.rows || []);
1143
- const metrics = tableMetrics((content.rows || []).length + 1, region.y || 0, regionBottom,
1144
- { rowH: 0.35, maxRowH: 0.55, headerSize: 14, dataSize: 14 });
1145
- const headerRole = fontRoles[region.font_role_header] || fontRoles.table_header;
1146
- const dataRole = fontRoles[region.font_role_data] || fontRoles.table_data;
1147
-
1148
- const tableData = [];
1149
-
1150
- if (content.headers && content.headers.length > 0) {
1151
- tableData.push(
1152
- content.headers.map((h) => ({
1153
- text: cleanMd(h),
1154
- options: {
1155
- bold: false,
1156
- fontSize: headerRole ? headerRole.size : 14,
1157
- fontFace: headerRole ? headerRole.font : FONT_BOLD,
1158
- color: headerRole ? headerRole.color : "000000",
1159
- align: numeric[content.headers.indexOf(h)] ? "right" : (headerRole ? headerRole.align : "left"),
1160
- valign: "middle",
1161
- ...(headerRole && headerRole.charSpacing != null
1162
- ? { charSpacing: headerRole.charSpacing }
1163
- : {}),
1164
- ...(headerRole && headerRole.fill
1165
- ? { fill: { color: headerRole.fill.replace("#", "") } }
1166
- : {}),
1167
- },
1168
- }))
1169
- );
1170
- }
1171
-
1172
- if (content.rows) {
1173
- for (const row of content.rows) {
1174
- tableData.push(
1175
- row.map((cell, ci) => linkedTableCell(cell, {
1176
- fontSize: dataRole ? dataRole.size : 14,
1177
- fontFace: dataRole ? dataRole.font : FONT_MEDIUM,
1178
- color: dataRole ? dataRole.color : "000000",
1179
- align: numeric[ci] ? "right" : (dataRole ? dataRole.align : "left"),
1180
- valign: "middle",
1181
- ...(dataRole && dataRole.charSpacing != null
1182
- ? { charSpacing: dataRole.charSpacing }
1183
- : {}),
1184
- }))
1185
- );
1186
- }
1187
- }
1188
-
1189
- const numCols = (content.headers && content.headers.length) || 1;
1190
- const tblX = region.x || 0;
1191
- const tblY = region.y || 0;
1192
- const tblW = region.w || 4;
1193
- slide.addTable(tableData, {
1194
- x: tblX,
1195
- y: tblY,
1196
- w: tblW,
1197
- border: { pt: 1.5, color: "000000" },
1198
- colW: numCols > 0 && content.headers ? proportionalWidths(content.headers, content.rows || [], tblW) : Array(numCols).fill(tblW / numCols),
1199
- margin: [3.6, 7.2, 3.6, 7.2],
1200
- rowH: metrics.rowH,
1201
- });
1202
- return;
1203
- }
1204
-
1205
- // ── Image ──────────────────────────────────────────────────────────
1206
- if (content.type === "image") {
1207
- const imgPath = resolveImagePath(content.src, sourceDir);
1208
- const fit = containBox(
1209
- region.x || 0,
1210
- region.y || 0,
1211
- region.w || 2,
1212
- region.h || 1,
1213
- readImageSize(imgPath),
1214
- );
1215
- slide.addImage({
1216
- path: imgPath,
1217
- ...fit,
1218
- altText: content.caption || path.basename(content.src || imgPath),
1219
- });
1220
- return;
1221
- }
1222
-
1223
- if (content.type === "image-grid") {
1224
- const images = Array.isArray(content.images) ? content.images : [];
1225
- const count = images.length;
1226
- if (count === 0) return;
1227
- const cols = count <= 2 ? count : 2;
1228
- const rows = Math.ceil(count / cols);
1229
- const gap = 0.06;
1230
- const baseX = region.x || 0;
1231
- const baseY = region.y || 0;
1232
- const baseW = region.w || 4;
1233
- const baseH = region.h || 3;
1234
- const cellW = (baseW - gap * (cols - 1)) / cols;
1235
- const cellH = (baseH - gap * (rows - 1)) / rows;
1236
- images.forEach((image, idx) => {
1237
- const imgPath = resolveImagePath(image.src, sourceDir);
1238
- const col = idx % cols;
1239
- const row = Math.floor(idx / cols);
1240
- const fit = containBox(
1241
- baseX + col * (cellW + gap),
1242
- baseY + row * (cellH + gap),
1243
- cellW,
1244
- cellH,
1245
- readImageSize(imgPath),
1246
- );
1247
- slide.addImage({
1248
- path: imgPath,
1249
- ...fit,
1250
- altText: image.caption || path.basename(image.src || imgPath),
1251
- });
1252
- });
1253
- return;
1254
- }
1255
-
1256
- // ── Figure Caption ────────────────────────────────────────────────
1257
- if (content.type === "figure-caption") {
1258
- const num = content.number || 1;
1259
- const prefix = content.prefix || "도";
1260
- const captionText = content.caption ? `${prefix} ${num}. ${cleanMd(content.caption)}` : `${prefix} ${num}.`;
1261
- const captionRole = fontRoles.figure_caption || {};
1262
- const captionW = region.w || 4;
1263
- const captionSize = captionRole.size || 16;
1264
- const captionSpacing = captionRole.lineSpacing || 1.3;
1265
- slide.addText(captionText, {
1266
- x: region.x || 0,
1267
- y: region.y || 0,
1268
- w: captionW,
1269
- // A caption that wraps needs a box tall enough to hold every line, or it
1270
- // overflows its frame. The declared region height is the floor, not the cap.
1271
- h: Math.max(
1272
- region.h || 0.456,
1273
- estimateTextHeight(captionText, captionW, captionSize, captionSpacing)
1274
- ),
1275
- fontFace: captionRole.font || FONT_MEDIUM,
1276
- fontSize: captionSize,
1277
- color: (captionRole.color || "000000").replace("#", ""),
1278
- align: region.align || captionRole.align || "center",
1279
- charSpacing: captionRole.charSpacing != null ? captionRole.charSpacing : CHAR_SPACING,
1280
- lineSpacingMultiple: captionRole.lineSpacing || 1.3,
1281
- });
1282
- return;
1283
- }
1284
-
1285
- // ── Table Caption ─────────────────────────────────────────────────
1286
- if (content.type === "table-caption") {
1287
- const num = content.number || 1;
1288
- const prefix = content.prefix || "표";
1289
- const captionText = content.caption ? `${prefix} ${num}. ${cleanMd(content.caption)}` : `${prefix} ${num}.`;
1290
- const captionRole = fontRoles.table_caption || {};
1291
- const captionW = region.w || 4;
1292
- const captionSize = captionRole.size || 16;
1293
- const captionSpacing = captionRole.lineSpacing || 1.3;
1294
- slide.addText(captionText, {
1295
- x: region.x || 0,
1296
- y: region.y || 0,
1297
- w: captionW,
1298
- // Same rule as the figure caption: the declared region height is the
1299
- // floor, not the cap, or a wrapping caption overflows its frame.
1300
- h: Math.max(
1301
- region.h || 0.456,
1302
- estimateTextHeight(captionText, captionW, captionSize, captionSpacing)
1303
- ),
1304
- fontFace: captionRole.font || FONT_MEDIUM,
1305
- fontSize: captionSize,
1306
- color: (captionRole.color || "000000").replace("#", ""),
1307
- align: region.align || captionRole.align || "center",
1308
- charSpacing: captionRole.charSpacing != null ? captionRole.charSpacing : CHAR_SPACING,
1309
- lineSpacingMultiple: captionRole.lineSpacing || 1.3,
1310
- });
1311
- return;
1312
- }
1313
-
1314
- // ── Summary Group → individual shapes ──────────────────────────────
1315
- if (content.type === "summary-group") {
1316
- addSummaryShapes(slide, content, region);
1317
- return;
1318
- }
1319
- }
1320
-
1321
- // ── Rich card, KPI and table rendering (templates with the rich-blocks capability) ──
1322
-
1323
- /** Split a title string into runs, emphasizing **word** in the primary color. */
1324
- function azureTitleRuns(text, P) {
1325
- return text.split(/(\*\*[^*]+\*\*)/g).filter(Boolean).map((p) =>
1326
- p.startsWith("**") && p.endsWith("**")
1327
- ? { text: p.slice(2, -2), options: { color: hex(P.primary) } }
1328
- : { text: p, options: {} }
1329
- );
1330
- }
1331
-
1332
- /** Strip leftover markdown markers (### heading, list dashes, **bold**, `code`)
1333
- * from inline text, returning a clean plain string. */
1334
- function cleanMd(s) {
1335
- return String(s || "")
1336
- .replace(/^#{1,6}\s+/, "")
1337
- .replace(/^\s*[*-]\s+/, "")
1338
- .replace(/\*\*(.+?)\*\*/g, "$1")
1339
- .replace(/(?<![\w*])\*([^*\s](?:[^*]*[^*\s])?)\*(?![\w*])/gu, "$1")
1340
- .replace(/`/g, "")
1341
- .trim();
1342
- }
1343
-
1344
- /** Convert inline markdown in `text` to pptxgenjs styled runs: **x** → a bold
1345
- * run, plain segments → normal runs. Leading heading/list markers and backticks
1346
- * are stripped. `runOpts` styles every run; bold runs additionally set bold.
1347
- * Guarantees no raw "**", "###", or backtick reaches the rendered <a:t>. */
1348
- function mdRuns(text, runOpts = {}) {
1349
- const clean = String(text || "")
1350
- .replace(/^#{1,6}\s+/, "")
1351
- .replace(/^\s*[*-]\s+/, "")
1352
- .replace(/`/g, "");
1353
- // **x** is bold; *x* (a journal or book name) is italic.
1354
- const parts = clean.split(/(\*\*[^*]+\*\*|(?<![\w*])\*[^*\s](?:[^*]*[^*\s])?\*(?![\w*]))/gu).filter((p) => p !== "");
1355
- if (parts.length === 0) return [{ text: "", options: { ...runOpts } }];
1356
- return parts.map((p) =>
1357
- p.startsWith("**") && p.endsWith("**")
1358
- ? { text: p.slice(2, -2), options: { ...runOpts, bold: true } }
1359
- : p.length > 2 && p.startsWith("*") && p.endsWith("*")
1360
- ? { text: p.slice(1, -1), options: { ...runOpts, italic: true } }
1361
- : { text: p, options: { ...runOpts } }
1362
- );
1363
- }
1364
-
1365
- /** Convert body items into up to 4 cards: {heading, lines[]}.
1366
- * Handles both authoring styles:
1367
- * - `### Title` (parsed as `text`) followed by `- **point**` (a `section`) → one card
1368
- * titled by the heading, the section folded into the body.
1369
- * - bare `- **Title**` sections → one card each (heading = bold title). */
1370
- function bodyToCards(items) {
1371
- const cards = [];
1372
- let cur = null;
1373
- for (const item of items || []) {
1374
- if (item.type === "text" && item.text) {
1375
- cur = { heading: cleanMd(item.text), lines: [] };
1376
- cards.push(cur);
1377
- } else if (item.type === "section" || item.type === "bullet") {
1378
- const head = cleanMd(item.heading || item.text || "");
1379
- const kids = (item.children || []).map((c) => cleanMd(c.text)).filter(Boolean);
1380
- if (cur && cur.lines.length === 0 && cur.heading) {
1381
- // fold this section under the preceding heading card
1382
- if (head) cur.lines.push(head);
1383
- kids.forEach((k) => cur.lines.push(" " + k));
1384
- } else {
1385
- cur = { heading: head, lines: kids };
1386
- cards.push(cur);
1387
- }
1388
- } else if (item.type === "numbered" && item.text) {
1389
- if (cur) cur.lines.push(cleanMd(item.text));
1390
- else { cur = { heading: "", lines: [cleanMd(item.text)] }; cards.push(cur); }
1391
- }
1392
- }
1393
- return cards.slice(0, 4);
1394
- }
1395
-
1396
- // Card geometry shared by drawing and sizing, so a card is exactly as tall as its text
1397
- // (template tokens card.*; reassigned in render()).
1398
- let CARD_PAD = LEGACY_TOKENS.card.pad;
1399
- let CARD_CHIP = LEGACY_TOKENS.card.chip;
1400
- let CARD_MIN_H = LEGACY_TOKENS.card.minH;
1401
- let CARD_GAP = LEGACY_TOKENS.card.gap;
1402
- let CARD_RADIUS = LEGACY_TOKENS.card.radius;
1403
-
1404
- // Primary reading text stays at or above the 12 pt floor of the design laws.
1405
- function cardBodySize(card) {
1406
- return card.lines && card.lines.length > 4 ? 12 : 13;
1407
- }
1408
-
1409
- // Card text height: the conservative wrap count, but line boxes at their real
1410
- // leading (estimateTextHeight pads every paragraph, which left short cards hollow).
1411
- function cardTextHeight(text, innerW, fontSize, lineSpacing) {
1412
- return (estimateWrappedLines(text, innerW, fontSize) * fontSize * lineSpacing * 1.2) / 72;
1413
- }
1414
-
1415
- function cardHeadingHeight(card, innerW) {
1416
- return card.heading ? cardTextHeight(card.heading, innerW, 15, 1.05) + 0.06 : 0;
1417
- }
1418
-
1419
- function cardBodyHeight(card, innerW) {
1420
- if (card.bodyRuns && card.bodyRuns.length) return card.bodyHeight || 0;
1421
- const fs = cardBodySize(card);
1422
- return (card.lines || []).reduce((sum, line) => sum + cardTextHeight(line, innerW, fs, 1.3), 0.1);
1423
- }
1424
-
1425
- /** Height a card needs for its chip, heading and body at the width it is drawn. */
1426
- function azureCardHeight(card, w) {
1427
- const innerW = w - 2 * CARD_PAD;
1428
- const head = card.heading ? 0.18 + Math.max(0.4, cardHeadingHeight(card, innerW)) + 0.04 : 0.18;
1429
- return CARD_PAD + CARD_CHIP + head + cardBodyHeight(card, innerW) + CARD_PAD;
1430
- }
1431
-
1432
- /**
1433
- * The height a row of cards is drawn at: the tallest card's content, never taller
1434
- * than the region the template reserves and never shorter than CARD_MIN_H. A fixed
1435
- * region height left short cards mostly empty; the space below a short row is free
1436
- * for the takeaway, and the craft gate reports a slide that stays thin.
1437
- */
1438
- function fittedCardHeight(cards, w, regionH) {
1439
- const need = Math.max(...cards.map((c) => azureCardHeight(c, w)));
1440
- return Math.min(regionH, Math.max(CARD_MIN_H, need));
1441
- }
1442
-
1443
- /** Draw one rounded card with a numbered chip, heading, and body lines. */
1444
- function drawAzureCard(slide, x, y, w, h, card, idx, P, emphasized) {
1445
- const bg = emphasized ? hex(P.primary_deep) : hex(P.tint);
1446
- const headColor = emphasized ? "FFFFFF" : hex(P.ink);
1447
- const bodyColor = emphasized ? hex(P.emphasisTextColor) : hex(P.ink_muted);
1448
- slide.addShape("roundRect", { x, y, w, h, rectRadius: CARD_RADIUS, fill: { color: bg }, line: { type: "none" } });
1449
- const pad = CARD_PAD;
1450
- const innerW = w - 2 * pad;
1451
- // numbered chip
1452
- const chip = CARD_CHIP;
1453
- slide.addShape("roundRect", {
1454
- x: x + pad, y: y + pad, w: chip, h: chip, rectRadius: 0.12,
1455
- fill: { color: emphasized ? "FFFFFF" : hex(P.primary) }, line: { type: "none" },
1456
- });
1457
- // Number sits in a text box whose rect is identical to the chip rect, with
1458
- // margin:0 and tight line spacing so the numeral reads dead-centre.
1459
- slide.addText(String(idx + 1).padStart(2, "0"), {
1460
- x: x + pad, y: y + pad, w: chip, h: chip, align: "center", valign: "middle",
1461
- fontFace: P.titleFont, fontSize: 15, bold: true,
1462
- color: emphasized ? hex(P.primary_deep) : "FFFFFF",
1463
- margin: 0, lineSpacingMultiple: 1,
1464
- });
1465
- const headH = cardHeadingHeight(card, innerW);
1466
- if (card.heading) {
1467
- slide.addText(card.heading, {
1468
- x: x + pad, y: y + pad + chip + 0.18, w: innerW, h: Math.max(0.4, headH),
1469
- fontFace: P.titleFont, fontSize: 15, bold: true, color: headColor, align: "left", valign: "top",
1470
- charSpacing: -0.3,
1471
- });
1472
- }
1473
- const bodyY = y + pad + chip + 0.18 + (card.heading ? Math.max(0.4, headH) + 0.04 : 0);
1474
- const bodyH = Math.max(0.3, h - (bodyY - y) - 0.18);
1475
- if (card.bodyRuns && card.bodyRuns.length) {
1476
- slide.addText(card.bodyRuns, {
1477
- x: x + pad, y: bodyY, w: innerW, h: bodyH,
1478
- color: bodyColor, align: "left", valign: "top", lineSpacingMultiple: card.lineSpacing || 1.28, charSpacing: -0.2,
1479
- });
1480
- } else if (card.lines && card.lines.length) {
1481
- // Shrink body font when there are many lines so it never exceeds the frame.
1482
- const fs = cardBodySize(card);
1483
- slide.addText(card.lines.join("\n"), {
1484
- x: x + pad, y: bodyY, w: innerW, h: bodyH,
1485
- fontFace: P.bodyFont, fontSize: fs, color: bodyColor, align: "left", valign: "top",
1486
- lineSpacingMultiple: 1.3, charSpacing: -0.2,
1487
- });
1488
- }
1489
- }
1490
-
1491
- /** Render content/main body as a row of cards, as tall as the longest card needs. */
1492
- function renderAzureCards(slide, items, region, P) {
1493
- const cards = bodyToCards(items);
1494
- if (!cards.length) return;
1495
- const n = cards.length;
1496
- const x0 = region.x || 0.6, y0 = region.y || 1.6, w = region.w || 12.1;
1497
- const gap = CARD_GAP;
1498
- const cardW = (w - (n - 1) * gap) / n;
1499
- const h = fittedCardHeight(cards, cardW, region.h || 3.0);
1500
- cards.forEach((c, i) => {
1501
- drawAzureCard(slide, x0 + i * (cardW + gap), y0, cardW, h, c, i, P, n >= 3 && i === n - 1);
1502
- });
1503
- return y0 + h;
1504
- }
1505
-
1506
- /** Flatten body/summary items (sections + children + bullets) into styled runs.
1507
- * `scale` (≤1) shrinks fonts to fit a fixed card height. */
1508
- function itemsToRuns(items, P, scale = 1) {
1509
- const s = (v) => Math.max(8, Math.round(v * scale * 10) / 10);
1510
- const runs = [];
1511
- for (const it of items || []) {
1512
- if (it.type === "section") {
1513
- runs.push({ text: cleanMd(it.heading || ""), options: { bold: true, fontFace: P.titleFont, fontSize: s(14), color: hex(P.ink), breakLine: true } });
1514
- for (const c of it.children || []) {
1515
- runs.push({ text: " " + cleanMd(c.text || ""), options: { fontFace: P.bodyFont, fontSize: s(12.5), color: hex(P.ink_muted), breakLine: true } });
1516
- }
1517
- } else if (it.text) {
1518
- runs.push({ text: (it.type === "numbered" ? " " : "• ") + cleanMd(it.text), options: { fontFace: P.bodyFont, fontSize: s(13), color: hex(P.ink_muted), breakLine: true } });
1519
- }
1520
- }
1521
- return runs;
1522
- }
1523
-
1524
- /** Estimate the rendered height of a group's items at a given font scale,
1525
- * using the same conservative metric inventory respects (estimateTextHeight). */
1526
- function estimateGroupHeight(items, innerW, scale, lineSpacing) {
1527
- let hsum = 0;
1528
- for (const it of items || []) {
1529
- if (it.type === "section") {
1530
- hsum += estimateTextHeight(it.heading || "", innerW, 14 * scale, lineSpacing);
1531
- for (const c of it.children || []) hsum += estimateTextHeight(" " + (c.text || ""), innerW - 0.1, 12.5 * scale, lineSpacing);
1532
- } else if (it.text) {
1533
- hsum += estimateTextHeight(it.text, innerW, 13 * scale, lineSpacing);
1534
- }
1535
- }
1536
- return hsum;
1537
- }
1538
-
1539
- /** The height a group's runs take at their real leading, for sizing (not fitting) the card. */
1540
- function groupTextHeight(items, innerW, scale, lineSpacing) {
1541
- let hsum = 0.1;
1542
- for (const it of items || []) {
1543
- if (it.type === "section") {
1544
- hsum += cardTextHeight(it.heading || "", innerW, 14 * scale, lineSpacing);
1545
- for (const c of it.children || []) hsum += cardTextHeight(" " + (c.text || ""), innerW - 0.1, 12.5 * scale, lineSpacing);
1546
- } else if (it.text) {
1547
- hsum += cardTextHeight("• " + it.text, innerW, 13 * scale, lineSpacing);
1548
- }
1549
- }
1550
- return hsum;
1551
- }
1552
-
1553
- /** A summary group as a card: the largest font scale (1 down to 0.55) whose text fits
1554
- * `maxH`, and the height that text needs at that scale. */
1555
- function groupCard(content, w, maxH, P) {
1556
- const innerW = w - 2 * CARD_PAD;
1557
- const heading = cleanMd(content.heading || "");
1558
- const headH = heading ? 0.18 + Math.max(0.4, cardHeadingHeight({ heading }, innerW)) + 0.04 : 0.18;
1559
- const fixed = CARD_PAD + CARD_CHIP + headH + 0.18;
1560
- let scale = 0.55, ls = 1.12;
1561
- for (const s of [1, 0.92, 0.85, 0.78, 0.72, 0.66, 0.6, 0.55]) {
1562
- if (estimateGroupHeight(content.items, innerW, s, s < 1 ? 1.12 : 1.28) <= maxH - fixed) { scale = s; ls = s < 1 ? 1.12 : 1.28; break; }
1563
- }
1564
- const bodyHeight = groupTextHeight(content.items, innerW, scale, ls);
1565
- return {
1566
- card: { heading, bodyRuns: itemsToRuns(content.items, P, scale), lineSpacing: ls, bodyHeight },
1567
- need: Math.min(maxH, fixed + bodyHeight + CARD_PAD - 0.18),
1568
- };
1569
- }
1570
-
1571
- /** Render a single summary-group as one card, at `opts.height` (shared by the
1572
- * groups of one slide) or at the height its own text needs. */
1573
- function renderAzureGroupCard(slide, content, region, P, idx, height) {
1574
- const w = region.w || 5.6, maxH = region.h || 2.4;
1575
- const { card, need } = groupCard(content, w, maxH, P);
1576
- const h = Math.min(maxH, Math.max(CARD_MIN_H, height || need));
1577
- drawAzureCard(slide, region.x || 0.6, region.y || 1.6, w, h, card, idx, P, false);
1578
- }
1579
-
1580
- /** Render a general data table (palette-styled): primary header, zebra tint rows. */
1581
- // ── Tables and charts that fill their region ────────────────────────────────
1582
-
1583
- // A cell reads as a number when, after units and signs, only digits remain.
1584
- const NUMERIC_CELL = /^(?:[▲▼△▽]\s*)?[+\-−±]?\s*[\d.,]+\s*(?:%p?|배|x|pt|bp|[가-힣]{1,3}|[A-Za-z]{1,3})?$/u;
1585
- const isNumericCell = (text) => NUMERIC_CELL.test(cleanMd(String(text)).trim());
1586
-
1587
- /** Columns whose data cells are all numbers are right-aligned; a dash for a missing value is blank. */
1588
- function numericColumns(headers, rows) {
1589
- return headers.map((_, ci) => {
1590
- const cells = rows.map((r) => r[ci]).filter((c) => c != null && !/^[\s—–\-]*$/u.test(cleanMd(String(c))));
1591
- return cells.length > 0 && cells.every(isNumericCell);
1592
- });
1593
- }
1594
-
1595
- /** Column widths proportional to the longest cell, Hangul counted wider, with a floor. */
1596
- function proportionalWidths(headers, rows, totalW) {
1597
- const len = (t) => [...cleanMd(String(t || ""))].reduce((n, ch) => n + (/[\u3131-\uD7A3]/u.test(ch) ? 1.7 : 1), 0);
1598
- const want = headers.map((h, ci) => Math.max(len(h), ...rows.map((r) => len(r[ci])), 4));
1599
- const floor = Math.min(0.9, totalW / headers.length);
1600
- const sum = want.reduce((a, b) => a + b, 0);
1601
- let widths = want.map((w) => Math.max(floor, (w / sum) * totalW));
1602
- const scale = totalW / widths.reduce((a, b) => a + b, 0);
1603
- widths = widths.map((w) => w * scale);
1604
- return widths;
1605
- }
1606
-
1607
- /**
1608
- * Row height and font size for a table that should use the room it has: rows
1609
- * grow toward `bottom` (up to a comfortable maximum) instead of leaving the lower
1610
- * half of the slide empty, and a roomy table gets a larger font.
1611
- */
1612
- function tableMetrics(rowCount, y, bottom, base) {
1613
- const room = Math.max(0, (bottom || y + rowCount * base.rowH) - y);
1614
- const rowH = Math.min(base.maxRowH, Math.max(base.rowH, (room * 0.92) / rowCount));
1615
- const scale = rowH >= 0.55 ? 1.2 : rowH >= 0.47 ? 1.1 : 1;
1616
- return { rowH, headerSize: +(base.headerSize * scale).toFixed(1), dataSize: +(base.dataSize * scale).toFixed(1) };
1617
- }
1618
-
1619
- function renderAzureTable(slide, content, region, P, bottom) {
1620
- const headers = content.headers || [];
1621
- const rows = content.rows || [];
1622
- if (!headers.length) return;
1623
- const x = region.x || 0.6, y = region.y || 1.6, w = region.w || 6.0;
1624
- const numeric = numericColumns(headers, rows);
1625
- const m = tableMetrics(rows.length + 1, y, bottom, { rowH: 0.4, maxRowH: 0.72, headerSize: 12, dataSize: 11.5 });
1626
- const tableRows = [];
1627
- tableRows.push(headers.map((h, ci) => ({
1628
- text: cleanMd(h),
1629
- options: { bold: true, color: "FFFFFF", fill: { color: hex(P.primary) }, fontFace: P.titleFont, fontSize: m.headerSize, align: numeric[ci] ? "right" : "left", valign: "middle" },
1630
- })));
1631
- rows.forEach((r, ri) => {
1632
- tableRows.push(r.map((c, ci) => linkedTableCell(c, {
1633
- color: hex(P.ink), fill: { color: ri % 2 ? "FFFFFF" : hex(P.tint) }, fontFace: P.bodyFont, fontSize: m.dataSize,
1634
- align: numeric[ci] ? "right" : "left", valign: "middle", bold: ci === 0 && !numeric[0],
1635
- })));
1636
- });
1637
- slide.addTable(tableRows, {
1638
- x, y, w, colW: proportionalWidths(headers, rows, w),
1639
- border: { type: "solid", color: hex(P.line), pt: 0.5 }, rowH: m.rowH, margin: [0.04, 0.12, 0.04, 0.12], autoPage: false,
1640
- });
1641
- }
1642
-
1643
- /** Parse "1,234", "▲12.5%", "−3" into a number; anything else is null. */
1644
- function chartNumber(text) {
1645
- const t = cleanMd(String(text || "")).trim().replace(/[,\s]/g, "").replace(/^[▲△+]/u, "").replace(/^[▼▽−]/u, "-");
1646
- const m = t.match(/^-?\d+(?:\.\d+)?/);
1647
- return m ? parseFloat(m[0]) : null;
1648
- }
1649
-
1650
- const CHART_TYPE = { bar: "bar", column: "bar", stacked: "bar", line: "line", area: "area", pie: "pie", doughnut: "doughnut" };
1651
-
1652
- /**
1653
- * A native PowerPoint chart (editable in PowerPoint: right-click > Edit Data)
1654
- * from a `::: chart` block. It takes the whole region down to `bottom`.
1655
- */
1656
- function renderChart(slide, content, region, style, bottom) {
1657
- const headers = content.headers || [];
1658
- const rows = content.rows || [];
1659
- const spec = content.chart || {};
1660
- const kind = CHART_TYPE[spec.type] || "bar";
1661
- const labels = rows.map((r) => cleanMd(String(r[0] || "")));
1662
- const series = headers.slice(1).map((name, si) => ({
1663
- name: cleanMd(String(name)),
1664
- labels,
1665
- // A cell with no number stays null and becomes a blank point, so its line breaks rather than diving to zero.
1666
- values: rows.map((r) => chartNumber(r[si + 1])),
1667
- }));
1668
- // Data labels carry as many decimals as the table writes (at most three): beside a table that says 46.0
1669
- // the label says 46.0, not 46.
1670
- const decimals = Math.min(3, Math.max(0, ...rows.flatMap((r) => r.slice(1).map((v) => ((/\.(\d+)/u.exec(cleanMd(String(v == null ? "" : v)).replace(/,/gu, "")) || [, ""])[1]).length))));
1671
- const x = region.x || 0.6, y = region.y || 1.6, w = region.w || 8;
1672
- const h = Math.max(1.6, ((bottom || y + (region.h || 3.2)) - y));
1673
- const colors = style.series.map((c) => hex(c));
1674
- const round = kind === "pie" || kind === "doughnut";
1675
- const data = round ? series.slice(0, 1) : series;
1676
- // Crowding, estimated in points: a category label wider than its slot is slanted; side-by-side
1677
- // value labels wider than their bars collide, so the values are read off a shown axis instead.
1678
- const ems = (t) => [...String(t)].reduce((a, ch) => a + (/[\u3131-\uD7A3]/u.test(ch) ? 0.94 : /\s/u.test(ch) ? 0.28 : 0.56), 0);
1679
- const labelPt = style.labelSize || 11;
1680
- const slot = (w * 72 * 0.85) / Math.max(1, labels.length);
1681
- // A renderer adds space between Hangul and digits ("25 년 2Q"), so a label needs a quarter of its slot spare.
1682
- // Horizontal bars list their categories down the side: slanted there, LibreOffice leaves some out.
1683
- const slanted = !round && kind !== "line" && spec.type !== "bar" && Math.max(0, ...labels.map(ems)) * labelPt > slot * 0.75;
1684
- const clustered = kind === "bar" && spec.type !== "stacked" && data.length > 1;
1685
- const valueW = Math.max(0, ...data.flatMap((d) => d.values.map((v) => ems(Number(v).toLocaleString("en-US"))))) * labelPt;
1686
- // With more than one line, the series cross the same rows of the plot and their point labels pile up.
1687
- const crowded = !round && ((clustered && valueW > (slot / 1.6 / data.length) * 1.1) || (kind === "line" && data.length > 1));
1688
- const values = data.flatMap((d) => d.values).filter((v) => v !== null);
1689
- // Horizontal bars of several series share each row; a bar thinner than one line of label text leaves its value label touching the next one.
1690
- const horizontal = !round && spec.type === "bar";
1691
- const dataPt = style.labelSize || (round ? 12 : 10);
1692
- const barPt = (h * 72 - 54) / Math.max(1, labels.length) / (data.length + 0.6);
1693
- const thin = horizontal && data.length > 1 && spec.labels !== false && barPt < dataPt * 1.2;
1694
- // On a narrow horizontal bar chart the value axis steps wide enough for each number to sit level; a crowded automatic axis gets slanted.
1695
- const top = Math.max(0, ...values), low = Math.min(0, ...values);
1696
- const tickW = ems(Math.round(Math.max(top, -low)).toLocaleString("en-US")) * dataPt;
1697
- const catW = Math.min(w * 72 * 0.4, Math.max(0, ...labels.map(ems)) * labelPt + 8);
1698
- const ticks = Math.floor((w * 72 - catW - 16) / (tickW * 2));
1699
- const nice = (step) => { const p = 10 ** Math.floor(Math.log10(step)); return [1, 2, 2.5, 5, 10].find((m) => m * p >= step) * p; };
1700
- const majorUnit = horizontal && top > low && ticks < 6 ? nice((top - low) / Math.max(1, ticks - 1)) : null;
1701
- const zeroBased = !round && values.length > 0 && values.every((v) => v >= 0);
1702
- // The unit stands once: a legend whose series names carry it already says it, so the axis title goes;
1703
- // otherwise it is set level (a rotated title stacks Hangul a glyph a line and reads tiny; 360 degrees, since
1704
- // pptxgenjs writes no angle for 0 and the axis default is vertical).
1705
- const unitShown = spec.unit && data.length > 1 && data.every((d) => String(d.name || "").includes(spec.unit));
1706
- const axisTitle = spec.unit && !unitShown && !(Boolean(style.valAxisHidden) && !crowded && !thin);
1707
- slide.addChart(kind, data, {
1708
- x, y, w, h,
1709
- barDir: spec.type === "bar" ? "bar" : "col",
1710
- barGrouping: spec.type === "stacked" ? "stacked" : "clustered",
1711
- barGapWidthPct: 60,
1712
- chartColors: round ? labels.map((_, i) => colors[i % colors.length]) : colors,
1713
- showLegend: round || data.length > 1,
1714
- legendPos: round ? "r" : "t",
1715
- legendFontFace: style.bodyFont, legendFontSize: 11, legendColor: hex(style.ink),
1716
- showValue: !round && spec.labels !== false && !crowded && !thin,
1717
- showPercent: round && spec.labels !== false, showLabel: false,
1718
- dataLabelFontFace: style.bodyFont, dataLabelFontSize: style.labelSize || (round ? 12 : 10),
1719
- dataLabelColor: round ? "FFFFFF" : hex(style.ink),
1720
- dataLabelPosition: round ? "ctr" : kind === "line" ? "t" : "outEnd",
1721
- dataLabelFormatCode: round ? "0%" : decimals ? `#,##0.${"0".repeat(decimals)}` : "#,##0",
1722
- catAxisLabelFontFace: style.bodyFont, catAxisLabelFontSize: style.labelSize || 11, catAxisLabelColor: hex(style.ink),
1723
- valAxisLabelFontFace: style.bodyFont, valAxisLabelFontSize: style.labelSize || 10, valAxisLabelColor: hex(style.ink_muted),
1724
- valAxisLabelFormatCode: "#,##0",
1725
- // A pack with direct labels and no gridlines drops the value axis: the labels carry the values.
1726
- valAxisHidden: Boolean(style.valAxisHidden) && !crowded && !thin,
1727
- ...(majorUnit ? { valAxisMajorUnit: majorUnit } : {}),
1728
- // Negative values move the zero line into the plot, so category names sit at the axis minimum instead of on the bars.
1729
- ...(horizontal && low < 0 ? { catAxisLabelPos: "low" } : {}),
1730
- // A blank point is a break in the line.
1731
- displayBlanksAs: "gap",
1732
- ...(style.valMax ? { valAxisMaxVal: style.valMax } : {}),
1733
- ...(zeroBased ? { valAxisMinVal: 0 } : {}),
1734
- ...(slanted ? { catAxisLabelRotate: -45 } : {}),
1735
- catAxisLineShow: true, catAxisLineColor: hex(style.line),
1736
- valGridLine: style.grid === false && !crowded && !thin ? { style: "none" } : { color: hex(style.line), size: 0.5 },
1737
- valAxisLineShow: false,
1738
- lineSize: 2.5, lineDataSymbol: "circle", lineDataSymbolSize: 7,
1739
- holeSize: 58,
1740
- ...(axisTitle ? { showValAxisTitle: true, valAxisTitle: spec.unit, valAxisTitleRotate: 360, valAxisTitleFontSize: style.labelSize || 10, valAxisTitleColor: hex(style.ink_muted), valAxisTitleFontFace: style.bodyFont } : {}),
1741
- ...(spec.title ? { showTitle: true, title: spec.title, titleFontFace: style.titleFont, titleFontSize: 13, titleColor: hex(style.ink) } : {}),
1742
- });
1743
- }
1744
-
1745
- /** A main-box as a tinted callout sized to its text, not an outlined frame. */
1746
- function renderAzureCallout(slide, text, region, P) {
1747
- const x = region.x || 0.84, y = region.y || 5.8, w = region.w || 11.6;
1748
- const lines = Math.max(1, Math.ceil(cleanMd(text).length / Math.max(20, w * 9)));
1749
- const h = Math.min(region.h || 1.0, 0.28 + lines * 0.3);
1750
- slide.addShape("roundRect", { x, y, w, h, rectRadius: 0.1, fill: { color: hex(P.tint) }, line: { type: "none" } });
1751
- slide.addText(cleanMd(text), {
1752
- x: x + 0.24, y, w: w - 0.48, h, fontFace: P.bodyFont, fontSize: 13, bold: true,
1753
- color: hex(P.primary_deep), align: "left", valign: "middle", margin: 0,
1754
- });
1755
- }
1756
-
1757
- /** Render a kpi-table as a row of KPI cards (value + label); first card filled. */
1758
- function renderAzureKpi(slide, content, region, P) {
1759
- const cards = kpiCards(content);
1760
- const values = cards.map((c) => c.value);
1761
- const labels = cards.map((c) => c.label);
1762
- const n = Math.min(values.length, 4);
1763
- if (!n) return;
1764
- const x0 = region.x || 0.6, y0 = region.y || 1.6, w = region.w || 12.1, h = region.h || 1.7;
1765
- const gap = KPI_GAP;
1766
- const cardW = (w - (n - 1) * gap) / n;
1767
- for (let i = 0; i < n; i++) {
1768
- const fill = i === 0;
1769
- const x = x0 + i * (cardW + gap);
1770
- slide.addShape("roundRect", {
1771
- x, y: y0, w: cardW, h, rectRadius: 0.16,
1772
- fill: { color: fill ? hex(P.primary) : "FFFFFF" },
1773
- line: fill ? { type: "none" } : { color: hex(P.line), width: 1 },
1774
- });
1775
- slide.addText(cleanMd(values[i]), {
1776
- x: x + 0.28, y: y0 + 0.20, w: cardW - 0.56, h: 0.8,
1777
- fontFace: P.titleFont, fontSize: 30, bold: true,
1778
- color: fill ? "FFFFFF" : hex(P.primary), align: "left", valign: "middle", charSpacing: -1, margin: 0,
1779
- });
1780
- slide.addText(cleanMd(labels[i]).toUpperCase(), {
1781
- x: x + 0.30, y: y0 + h - 0.5, w: cardW - 0.56, h: 0.32,
1782
- fontFace: P.bodyFont, fontSize: 9.5, bold: false,
1783
- color: fill ? hex(P.emphasisTextColor) : hex(P.ink_muted), align: "left", valign: "middle", charSpacing: 0.4, margin: 0,
1784
- });
1785
- }
1786
- }
1787
-
1788
- /** A pipe table reads as KPI in two shapes:
1789
- * - TALL: 2 cols of value|label pairs, ≤4 pairs, value cell short/metric-like.
1790
- * - WIDE: 3–4 cols, a single data row of short metric values (labels = header).
1791
- * Anything else (multi-row, long cells) is a real data table. */
1792
-
1793
-
1794
- /** Normalize a kpi-table into [{value,label}] cards for both KPI shapes. */
1795
- /**
1796
- * Is there room to draw this as KPI badges?
1797
- *
1798
- * A badge stacks a value over a label and reads as one glance, which stops
1799
- * working the moment the card is narrower than its own words: in a column half
1800
- * the slide wide, four badges leave 1.4in each and a label like "영업이익" wraps
1801
- * to one character per line. Below the floor the same data is drawn as a table,
1802
- * which narrows gracefully.
1803
- */
1804
- function kpiFits(content, widthIn) {
1805
- const cards = kpiCards(content).length;
1806
- return cards > 0 && (widthIn || 0) / cards >= KPI_MIN_CARD_WIDTH_IN;
1807
- }
1808
-
1809
- function kpiCards(content) {
1810
- const headers = content.headers || [];
1811
- const rows = content.rows || [];
1812
- if (headers.length === 2) {
1813
- return [headers, ...rows].slice(0, 4).map((p) => ({ value: p[0], label: p[1] }));
1814
- }
1815
- const row = rows[0] || [];
1816
- // A second body row is each figure's basis or comparison ("전년 대비 +12%", "목표 50%").
1817
- const basis = rows[1] || [];
1818
- return headers.slice(0, 6).map((lab, i) => ({ value: row[i] != null ? row[i] : "", label: lab, ...(basis[i] ? { note: basis[i] } : {}) }));
1819
- }
1820
-
1821
- /** Azure region dispatch. Returns true if it fully handled the region.
1822
- * opts.hasImage = slide also has a populated image region (→ never card the body). */
1823
- function renderAzureRegion(slide, layout, name, region, fontRoles, P, opts = {}) {
1824
- const content = region.content;
1825
- if (content == null) return false;
1826
- if (name === "main_box" && typeof content === "string" && content.trim()) {
1827
- // Below a card row that came out shorter than its region, the takeaway follows
1828
- // the cards instead of leaving a band of empty slide between them.
1829
- const follow = opts.flow && opts.flow.cardsBottom != null ? opts.flow.cardsBottom + 0.32 : null;
1830
- renderAzureCallout(slide, content, follow != null && follow < (region.y || 5.8) ? { ...region, y: follow } : region, P);
1831
- return true;
1832
- }
1833
- if (layout === "cover" && name === "title" && typeof content === "string" && content.includes("**")) {
1834
- const role = fontRoles.cover_title || {};
1835
- slide.addText(azureTitleRuns(content, P), {
1836
- objectName: "title@legacy",
1837
- x: region.x || 0, y: region.y || 0, w: region.w || 8, h: region.h || 1,
1838
- fontFace: role.font || P.titleFont, fontSize: role.size || 48, bold: role.bold !== false,
1839
- align: role.align || "left", valign: "middle",
1840
- charSpacing: role.charSpacing != null ? role.charSpacing : -1, lineSpacingMultiple: role.lineSpacing || 1.08,
1841
- });
1842
- return true;
1843
- }
1844
- if (typeof content === "object") {
1845
- if (content.type === "body" && (layout === "content" || layout === "main")) {
1846
- // Cards ONLY for section-structured bodies (≥2 ### sections) with no image.
1847
- // Prose bullets, or any body sharing the slide with an image, render as a
1848
- // normal text column (fall through to addRegion) so nothing is cramped.
1849
- const sections = (content.items || []).filter((i) => i.type === "section");
1850
- if (sections.length >= 2 && !opts.hasImage) {
1851
- const bottom = renderAzureCards(slide, content.items, region, P);
1852
- if (opts.flow) opts.flow.cardsBottom = bottom;
1853
- return true;
1854
- }
1855
- return false;
1856
- }
1857
- if (content.type === "kpi-table") {
1858
- if (content.chart) {
1859
- // Pie and doughnut slices carry white labels, so they use the darker tones only.
1860
- const round = ["pie", "doughnut"].includes(content.chart.type);
1861
- const series = round ? [P.primary, P.primary_deep, P.azure, P.ink_muted] : [P.primary, P.azure_soft, P.primary_deep, P.ink_muted];
1862
- renderChart(slide, content, region, { ...P, series }, opts.bottom);
1863
- }
1864
- else if (looksLikeKpi(content) && kpiFits(content, region.w)) {
1865
- renderAzureKpi(slide, content, region, P);
1866
- }
1867
- else renderAzureTable(slide, content, region, P, opts.bottom);
1868
- return true;
1869
- }
1870
- if (content.type === "summary-group") {
1871
- const idx = name === "group_bottom" ? 1 : 0;
1872
- renderAzureGroupCard(slide, content, region, P, idx, opts.groupHeight);
1873
- return true;
1874
- }
1875
- }
1876
- return false;
1877
- }
1878
-
1879
- // ── Placements (author-positioned boxes and shapes) ─────────────────────────
1880
-
1881
- /** Region name a placed block should be rendered as. */
1882
- function partRegionName(blockType) {
1883
- switch (blockType) {
1884
- case "title": return "title";
1885
- case "kpi-table": return "table";
1886
- case "image": return "image";
1887
- case "figure-caption": return "figure_caption";
1888
- case "table-caption": return "table_caption";
1889
- default: return "body";
1890
- }
1891
- }
1892
-
1893
- /** font_role a placed block falls back to when its box names none. */
1894
- function defaultPartRole(blockType) {
1895
- switch (blockType) {
1896
- case "title": return "section_title";
1897
- case "figure-caption": return "figure_caption";
1898
- case "table-caption": return "table_caption";
1899
- case "notes": return "disclaimer";
1900
- default: return "body_text";
1901
- }
1902
- }
1903
-
1904
- function estimatePartHeight(content, widthIn, role) {
1905
- const size = role.size || 13;
1906
- const spacing = role.lineSpacing || 1.3;
1907
- if (typeof content === "string") {
1908
- return estimateTextHeight(content, widthIn, size, spacing) + 0.08;
1909
- }
1910
- if (content && content.type === "body") {
1911
- const text = (content.items || []).map((i) => i.heading || i.text || "").join("\n");
1912
- return estimateTextHeight(text, widthIn, size, spacing) + 0.12;
1913
- }
1914
- return 0.5;
1915
- }
1916
-
1917
- /**
1918
- * Turn a shape placement into the decoration element addDecorations reads.
1919
- *
1920
- * A rule is drawn as a zero-height rect whose stroke is the visible mark, so it
1921
- * reads its colour and thickness from `color`/`width` while every other
1922
- * primitive reads `line`/`line_width`. Authors write one spelling — `line=` and
1923
- * `lw=` — and the difference is absorbed here.
1924
- */
1925
- function shapeToDecoration(placement, sourceDir) {
1926
- const isRule = placement.shape === "line";
1927
- const element = {
1928
- type: placement.shape,
1929
- x: placement.x, y: placement.y, w: placement.w, h: placement.h,
1930
- };
1931
- for (const [key, value] of Object.entries(placement)) {
1932
- if (["kind", "z", "shape", "x", "y", "w", "h"].includes(key)) continue;
1933
- if (key === "lw") element[isRule ? "width" : "line_width"] = value;
1934
- else if (key === "line" && isRule) element.color = value;
1935
- else if (key === "src") element.assetPath = resolveImagePath(value, sourceDir);
1936
- else element[key] = value;
1937
- }
1938
- return element;
1939
- }
1940
-
1941
- /**
1942
- * Render one placed box by flowing its blocks down the box.
1943
- *
1944
- * Every block but the last takes the height its content needs; the last takes
1945
- * whatever is left, so a heading followed by body fills the box rather than
1946
- * floating in its top edge. Nothing here consults the auto-nudge rules: a box
1947
- * lands exactly where the author put it, and the QA gate reports the consequence.
1948
- */
1949
- function renderPlacementBox(slide, placement, ctx) {
1950
- const blocks = placement.blocks || [];
1951
- if (blocks.length === 0) return;
1952
-
1953
- // Columns replace the body region, so they render in the template's own idiom.
1954
- // An explicit box is literal: the author asked for this content, here.
1955
- const useRich = ctx.rich && placement.z === "content";
1956
- const bottom = placement.y + (placement.h != null ? placement.h : 1.0);
1957
- let y = placement.y;
1958
-
1959
- blocks.forEach((block, i) => {
1960
- const remaining = Math.max(0.2, bottom - y);
1961
- const roleName = placement.role || defaultPartRole(block.type);
1962
- const role = ctx.fontRoles[roleName] || {};
1963
- const content = extractContent(block);
1964
- const isLast = i === blocks.length - 1;
1965
- const h = isLast
1966
- ? remaining
1967
- : Math.min(remaining, Math.max(0.2, estimatePartHeight(content, placement.w, role)));
1968
-
1969
- const region = {
1970
- x: placement.x, y, w: placement.w, h,
1971
- content,
1972
- font_role: roleName,
1973
- originX: placement.x,
1974
- ...(placement.align ? { align: placement.align } : {}),
1975
- ...(placement.valign ? { valign: placement.valign } : {}),
1976
- };
1977
-
1978
- const name = partRegionName(block.type);
1979
- const rendered = useRich &&
1980
- renderAzureRegion(slide, ctx.layout, name, region, ctx.fontRoles, ctx.P, {});
1981
- if (!rendered) {
1982
- addRegion(slide, name, region, ctx.fontRoles, ctx.pageH, y + h, false, ctx.sourceDir);
1983
- }
1984
- y += h;
1985
- });
1986
- }
1987
-
1988
- function renderPlacements(slide, placements, band, ctx) {
1989
- for (const placement of placements) {
1990
- if (placement.z !== band) continue;
1991
- if (placement.kind === "shape") {
1992
- addDecorations(slide, [shapeToDecoration(placement, ctx.sourceDir)], ctx.fontRoles);
1993
- } else {
1994
- renderPlacementBox(slide, placement, ctx);
1995
- }
1996
- }
1997
- }
1998
-
1999
- // ── Main render function ────────────────────────────────────────────────────
2000
-
2001
- /**
2002
- * Render the full resolved spec to a PPTX file.
2003
- *
2004
- * @param {object} resolved - Resolved spec from layout-resolver
2005
- * @param {object} templateObj - Template object from template-registry
2006
- * @param {string} outputPath - Where to write the .pptx file
2007
- * @returns {Promise<string>} Resolves with the output path
2008
- */
2009
- /**
2010
- * The deck-wide `notice:` (for example "예시 데이터 — 실제 수치로 바꿔 주세요") as a
2011
- * coloured tag at the bottom left of every slide, cover included, so a sample or
2012
- * draft deck can never be mistaken for a sourced one. A 9 pt grey footnote was easy
2013
- * to miss; the tag keeps its own fill and text colour (template palette
2014
- * `notice_fill` / `notice_ink`, default a light red with dark red text, 6:1).
2015
- */
2016
- const NOTICE_FILL = "FDECEA";
2017
- const NOTICE_INK = "A21B12";
2018
- let NOTICE = { ...LEGACY_TOKENS.notice };
2019
-
2020
- function addNotice(slide, text, pageW, pageH, pal) {
2021
- const label = cleanMd(text);
2022
- const fontSize = NOTICE.size;
2023
- const textW = (weightedTextLength(label) * fontSize * 0.98) / 72;
2024
- const w = Math.min(pageW * 0.55, textW + 0.46);
2025
- const h = NOTICE.h;
2026
- const x = NOTICE.x, y = pageH - h - NOTICE.bottom;
2027
- const fill = ((pal && pal.notice_fill) || NOTICE_FILL).replace("#", "");
2028
- const ink = ((pal && pal.notice_ink) || NOTICE_INK).replace("#", "");
2029
- slide.addShape("roundRect", { x, y, w, h, rectRadius: 0.15, fill: { color: fill }, line: { type: "none" }, objectName: "lit-notice tag" });
2030
- slide.addText(label, {
2031
- objectName: "lit-notice text",
2032
- x: x + 0.16, y, w: w - 0.32, h,
2033
- fontFace: FONT_BOLD, fontSize, bold: true, color: ink,
2034
- align: "left", valign: "middle", margin: 0, fit: "shrink",
2035
- });
2036
- }
2037
-
2038
- /**
2039
- * Give the first object drawn on a slide that has no name of its own the name `family@<id>`, so a
2040
- * checker can read the layout family the source asked for and compare it with what it measures.
2041
- */
2042
- function stampFamily(slide, family) {
2043
- const at = { addText: 1, addShape: 1, addImage: 0, addTable: 1, addChart: 2 };
2044
- const originals = {};
2045
- let done = false;
2046
- const restore = () => { for (const m of Object.keys(originals)) slide[m] = originals[m]; };
2047
- for (const [method, index] of Object.entries(at)) {
2048
- originals[method] = slide[method];
2049
- slide[method] = (...args) => {
2050
- if (!(args[index] && args[index].objectName)) {
2051
- restore();
2052
- done = true;
2053
- args[index] = { ...(args[index] || {}), objectName: `family@${family}` };
2054
- }
2055
- return originals[method].apply(slide, args);
2056
- };
2057
- }
2058
- /** Whether a shape took the name; unwraps the slide either way. */
2059
- return () => { restore(); return done; };
2060
- }
2061
-
2062
- async function render(resolved, templateObj, outputPath) {
2063
- const pack = (templateObj && templateObj.pack) || null;
2064
- if (pack && !pack.legacy) return require("./render-pack").renderPack(resolved, templateObj, outputPath);
2065
- applyTokens(pack && pack.tokens);
2066
- const fontRoles = buildFontRoles(templateObj);
2067
-
2068
- // Brand-neutralize: derive font/spacing/accent from the template, falling back
2069
- // to Pretendard when a template names no family.
2070
- const tpl = (templateObj && templateObj.template) || {};
2071
- const tplFonts = tpl.fonts || {};
2072
- const tplType = tpl.global_typography || {};
2073
- FONT_BOLD = tplFonts.title || "Pretendard";
2074
- FONT_MEDIUM = tplFonts.body || "Pretendard";
2075
- FONT_LIGHT = tplFonts.light || "Pretendard";
2076
- CHAR_SPACING = tplType.char_spacing != null ? tplType.char_spacing : -0.7;
2077
- SEC_HEADER_FONT = FONT_BOLD;
2078
- TOC_FONT = FONT_BOLD;
2079
- BULLET_COLOR = (tplType.bullet_color || "1D4ED8").replace("#", "");
2080
- SECTION_ACCENT = (tplType.section_accent || "1D4ED8").replace("#", "");
2081
-
2082
- // Rich card/KPI/divider rendering — palette-driven, for templates with the rich-blocks
2083
- // capability. Tokens come from the template palette.
2084
- const rich = Boolean(pack && (pack.capabilities || []).includes("rich-blocks"));
2085
- const pal = tpl.palette || {};
2086
- PLAIN_CHART_STYLE = {
2087
- series: [pal.ink || "#3C3836", pal.accent_green_2 || pal.primary || "#689D6A", pal.accent_amber || "#D79921", pal.accent_purple || "#B16286"],
2088
- ink: pal.ink || "#3C3836", ink_muted: pal.ink_muted || "#6E6256", line: pal.line || "#CBC2B5",
2089
- titleFont: FONT_BOLD, bodyFont: FONT_MEDIUM,
2090
- };
2091
- const P = {
2092
- titleFont: FONT_BOLD, bodyFont: FONT_MEDIUM,
2093
- primary: pal.primary || "#1D4ED8", primary_deep: pal.primary_deep || "#0B2E6F",
2094
- ink: pal.ink || "#0E1B2C", ink_muted: pal.ink_muted || "#51607A",
2095
- tint: pal.tint || "#EEF4FF", line: pal.line || "#D5DEEC", azure_soft: pal.azure_soft || "#93C5FD", azure: pal.azure || "#3B82F6",
2096
- emphasisTextColor: pal.emphasis_text || "#C9D8F5",
2097
- };
2098
-
2099
- const dims =
2100
- (templateObj && templateObj.template && templateObj.template.dimensions) || {};
2101
- const pageW = dims.width || 10.833;
2102
- const pageH = dims.height || 7.5;
2103
-
2104
- // Loaded here, not at module load, so AST-only and --list-* runs never install.
2105
- const PptxGenJS = require("pptxgenjs");
2106
- const pptx = new PptxGenJS();
2107
- pptx.defineLayout({ name: "A4_LANDSCAPE", width: pageW, height: pageH });
2108
- pptx.layout = "A4_LANDSCAPE";
2109
-
2110
- const title = (resolved.deck && resolved.deck.title) || "Presentation";
2111
- pptx.title = title;
2112
- const sourceDir = resolved.sourceDir;
2113
- const cramStress = isCramStressDeck(resolved);
2114
- const deckMeta = (resolved.deck && resolved.deck.metadata) || {};
2115
- const notice = typeof deckMeta.notice === "string" && deckMeta.notice.trim() ? deckMeta.notice.trim() : null;
2116
-
2117
- for (const slideSpec of resolved.slides || []) {
2118
- const slide = pptx.addSlide();
2119
- stampFamily(slide, slideSpec.family || slideSpec.layout);
2120
-
2121
- // Draw order is a band at a time: template decorations, then anything the
2122
- // author put under the content, then the template's regions, then the
2123
- // columns that replaced the body, then anything sitting on top.
2124
- addDecorations(slide, slideSpec.decorations, fontRoles);
2125
-
2126
- const placements = slideSpec.placements || [];
2127
- const placementCtx = {
2128
- rich, P, fontRoles, pageH, sourceDir,
2129
- layout: slideSpec.layout,
2130
- };
2131
- renderPlacements(slide, placements, "under", placementCtx);
2132
-
2133
- const regions = adjustedRegionsForImageColumn(slideSpec.regions || {});
2134
- if (cramStress && ["content", "main"].includes(slideSpec.layout) && regions.body) {
2135
- renderCramStressSlide(slide, { ...slideSpec, regions }, pageW, pageH, sourceDir);
2136
- continue;
2137
- }
2138
-
2139
- // Calculate bottom boundary for regions without explicit h
2140
- const bottomBoundary = {};
2141
- for (const [name, region] of Object.entries(regions)) {
2142
- let bottom = pageH - 0.5;
2143
- for (const [otherName, otherRegion] of Object.entries(regions)) {
2144
- if (otherName === name || otherName === "title") continue;
2145
- if (name === "body" && ["image", "figure_caption"].includes(otherName)) continue;
2146
- if (otherRegion.y && otherRegion.y > (region.y || 0) && otherRegion.h) {
2147
- const candidateBottom = otherRegion.y - 0.15;
2148
- if (candidateBottom < bottom) bottom = candidateBottom;
2149
- }
2150
- }
2151
- bottomBoundary[name] = bottom;
2152
- }
2153
-
2154
- const tocSlide = isTocSlide(regions);
2155
- const hasImage = Object.entries(regions).some(([n, r]) =>
2156
- (n === "image" || n === "figure") && r.content &&
2157
- (r.content.type === "image" || r.content.type === "image-grid"));
2158
-
2159
- // Summary groups sit side by side, so they share the height the fuller one needs.
2160
- const groups = Object.values(regions).filter((r) => r.content && r.content.type === "summary-group");
2161
- const groupHeight = rich && groups.length
2162
- ? Math.max(...groups.map((r) => groupCard(r.content, r.w || 5.6, r.h || 2.4, P).need))
2163
- : null;
2164
-
2165
- const flow = {};
2166
- for (const [name, region] of Object.entries(regions)) {
2167
- if (rich && renderAzureRegion(slide, slideSpec.layout, name, region, fontRoles, P, { hasImage, bottom: bottomBoundary[name], groupHeight, flow })) continue;
2168
- addRegion(slide, name, region, fontRoles, pageH, bottomBoundary[name], tocSlide, sourceDir);
2169
- }
2170
-
2171
- renderPlacements(slide, placements, "content", placementCtx);
2172
- renderPlacements(slide, placements, "over", placementCtx);
2173
- if (notice) addNotice(slide, notice, pageW, pageH, pal);
2174
- }
2175
-
2176
- await writeTagged(pptx, outputPath);
2177
- return outputPath;
2178
- }
2179
-
2180
- const HANGUL = /[\u1100-\u11FF\u3130-\u318F\uAC00-\uD7A3]/u;
2181
-
2182
- /**
2183
- * Korean runs say they are Korean. pptxgenjs marks every run lang="en-US", and a renderer then sets Hangul
2184
- * by Latin rules: LibreOffice under a non-Korean system locale puts extra space between Hangul and digits
2185
- * ("주 2회" comes out as "주 2 회"). A run holding Hangul becomes ko-KR with en-US as its alternate
2186
- * language, and a chart holding Hangul names ko-KR for its text; Latin-only runs stay en-US.
2187
- */
2188
- function tagLanguages(name, xml) {
2189
- if (/^ppt\/slides\/slide\d+\.xml$/u.test(name)) {
2190
- return xml.replace(/<a:r><a:rPr\b([^>]*?)(\/?>)([\s\S]*?)<a:t>([^<]*)<\/a:t><\/a:r>/gu, (m, attrs, close, mid, text) => {
2191
- if (!HANGUL.test(text)) return m;
2192
- const rest = attrs.replace(/\s(?:lang|altLang)="[^"]*"/gu, "");
2193
- return `<a:r><a:rPr lang="ko-KR" altLang="en-US"${rest}${close}${mid}<a:t>${text}</a:t></a:r>`;
2194
- });
2195
- }
2196
- if (/^ppt\/charts\/chart\d+\.xml$/u.test(name) && HANGUL.test(xml)) {
2197
- let out = xml.replace(/<a:defRPr\b(?![^>]*\blang=)/gu, '<a:defRPr lang="ko-KR" altLang="en-US"')
2198
- .replace(/<a:endParaRPr lang="en-US"/gu, '<a:endParaRPr lang="ko-KR" altLang="en-US"');
2199
- if (!/<c:lang\b/u.test(out)) out = out.replace(/(<c:date1904 val="[01]"\/>)/u, '$1<c:lang val="ko-KR"/>');
2200
- return out;
2201
- }
2202
- return xml;
2203
- }
2204
-
2205
- /**
2206
- * Write a deck with its Korean runs and charts tagged (tagLanguages). `edit` may rewrite a slide, chart or
2207
- * theme part first. jszip comes with pptxgenjs in the office runtime.
2208
- */
2209
- async function writeTagged(pptx, outputPath, edit = (name, xml) => xml) {
2210
- const JSZip = require("jszip");
2211
- const zip = await JSZip.loadAsync(await pptx.write({ outputType: "nodebuffer" }));
2212
- for (const name of Object.keys(zip.files).filter((n) => /^ppt\/(slides\/slide|charts\/chart|theme\/theme)\d+\.xml$/u.test(n))) {
2213
- const xml = await zip.file(name).async("string");
2214
- zip.file(name, tagLanguages(name, edit(name, xml)));
2215
- }
2216
- fs.writeFileSync(outputPath, await zip.generateAsync({ type: "nodebuffer", compression: "DEFLATE" }));
2217
- }
2218
-
2219
- // ── Tonality packs ──────────────────────────────────────────────────────────
2220
- //
2221
- // A pack deck is drawn by render-pack.js. It reuses the helpers below, and the font globals the
2222
- // free placement boxes read are switched to the pack's faces before it draws.
2223
-
2224
- function usePackFonts(titleFont, bodyFont, tokens) {
2225
- FONT_BOLD = titleFont;
2226
- FONT_MEDIUM = bodyFont;
2227
- FONT_LIGHT = bodyFont;
2228
- CHAR_SPACING = 0;
2229
- applyTokens(tokens);
2230
- }
2231
-
2232
- module.exports = {
2233
- render,
2234
- shared: {
2235
- hex, cleanMd, mdRuns, linkedTableCell, resolveImagePath, readImageSize, containBox,
2236
- kpiCards, numericColumns, proportionalWidths, renderChart, stampFamily, renderPlacements, usePackFonts, writeTagged,
2237
- },
2238
- };