@litfamily/litgravity 0.1.8 → 0.1.10

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 (1066) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +185 -97
  3. package/README_ko-KR.md +186 -98
  4. package/bin/litgravity.mjs +19 -8
  5. package/lib/agent-file.mjs +9 -7
  6. package/lib/doctor.mjs +31 -19
  7. package/lib/extension-manager.mjs +641 -0
  8. package/lib/host-tools.mjs +9 -36
  9. package/lib/install.mjs +21 -5
  10. package/lib/list.mjs +11 -16
  11. package/lib/paths.mjs +0 -1
  12. package/package.json +2 -2
  13. package/plugin/hooks/lib/extensions.mjs +58 -0
  14. package/plugin/hooks/lib/reentry.mjs +5 -4
  15. package/plugin/hooks/lib/routes.mjs +52 -9
  16. package/plugin/hooks/post-tool-use.mjs +0 -2
  17. package/plugin/hooks/pre-invocation.mjs +0 -2
  18. package/plugin/hooks/session-start.mjs +8 -0
  19. package/plugin/hooks/stop.mjs +2 -8
  20. package/plugin/plugin.json +1 -1
  21. package/plugin/skills/autoconference/SKILL.md +1 -1
  22. package/plugin/skills/autoconference/modes/core.md +1 -1
  23. package/plugin/skills/autoconference/references/visualization-guide.md +6 -6
  24. package/plugin/skills/autoconference/scripts/style_presets.py +6 -6
  25. package/plugin/skills/autoresearch/references/type-checklists.md +1 -1
  26. package/plugin/skills/autoresearch/references/visualization-guide.md +14 -5
  27. package/plugin/skills/frontend-ui-ux/SKILL.md +26 -142
  28. package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +1 -1
  29. package/plugin/skills/lit-code/references/engineering-risk-signals.md +2 -2
  30. package/plugin/skills/lit-diagram-drawer/SKILL.md +30 -161
  31. package/plugin/skills/lit-docx/SKILL.md +30 -119
  32. package/plugin/skills/lit-loop/SKILL.md +1 -1
  33. package/plugin/skills/lit-pptx/SKILL.md +28 -127
  34. package/plugin/skills/lit-schematic/SKILL.md +29 -95
  35. package/plugin/skills/lit-scientific-visualization/SKILL.md +29 -157
  36. package/plugin/skills/lit-typographic-motion/SKILL.md +28 -184
  37. package/plugin/skills/readme-studio/SKILL.md +30 -95
  38. package/plugin/skills/visual-qa/SKILL.md +30 -118
  39. package/lib/runtime.mjs +0 -81
  40. package/plugin/hooks/lib/motion.mjs +0 -171
  41. package/plugin/lib/python-pick.mjs +0 -63
  42. package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +0 -23
  43. package/plugin/skills/frontend-ui-ux/LICENSE +0 -21
  44. package/plugin/skills/frontend-ui-ux/PROVENANCE.json +0 -38
  45. package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
  46. package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
  47. package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
  48. package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +0 -186
  49. package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
  50. package/plugin/skills/frontend-ui-ux/kit/components.css +0 -417
  51. package/plugin/skills/frontend-ui-ux/kit/fonts.json +0 -22
  52. package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
  53. package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
  54. package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
  55. package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
  56. package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
  57. package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
  58. package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
  59. package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
  60. package/plugin/skills/frontend-ui-ux/kit/ui.js +0 -226
  61. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
  62. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
  63. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
  64. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
  65. package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +0 -103
  66. package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -96
  67. package/plugin/skills/frontend-ui-ux/references/complete-contract.md +0 -415
  68. package/plugin/skills/frontend-ui-ux/references/composition.md +0 -93
  69. package/plugin/skills/frontend-ui-ux/references/craft-floor.md +0 -203
  70. package/plugin/skills/frontend-ui-ux/references/creative-directions.md +0 -96
  71. package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -27
  72. package/plugin/skills/frontend-ui-ux/references/design/README.md +0 -248
  73. package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
  74. package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
  75. package/plugin/skills/frontend-ui-ux/references/design/airtable.md +0 -92
  76. package/plugin/skills/frontend-ui-ux/references/design/apple.md +0 -250
  77. package/plugin/skills/frontend-ui-ux/references/design/aside.md +0 -209
  78. package/plugin/skills/frontend-ui-ux/references/design/binance.md +0 -348
  79. package/plugin/skills/frontend-ui-ux/references/design/bmw.md +0 -183
  80. package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
  81. package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
  82. package/plugin/skills/frontend-ui-ux/references/design/cal.md +0 -262
  83. package/plugin/skills/frontend-ui-ux/references/design/claude.md +0 -315
  84. package/plugin/skills/frontend-ui-ux/references/design/clay.md +0 -307
  85. package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
  86. package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
  87. package/plugin/skills/frontend-ui-ux/references/design/cohere.md +0 -269
  88. package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
  89. package/plugin/skills/frontend-ui-ux/references/design/composio.md +0 -310
  90. package/plugin/skills/frontend-ui-ux/references/design/cursor.md +0 -312
  91. package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
  92. package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
  93. package/plugin/skills/frontend-ui-ux/references/design/expo.md +0 -284
  94. package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
  95. package/plugin/skills/frontend-ui-ux/references/design/figma.md +0 -223
  96. package/plugin/skills/frontend-ui-ux/references/design/framer.md +0 -249
  97. package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
  98. package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
  99. package/plugin/skills/frontend-ui-ux/references/design/ibm.md +0 -335
  100. package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
  101. package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
  102. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
  103. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
  104. package/plugin/skills/frontend-ui-ux/references/design/intercom.md +0 -149
  105. package/plugin/skills/frontend-ui-ux/references/design/kraken.md +0 -128
  106. package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
  107. package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
  108. package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
  109. package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
  110. package/plugin/skills/frontend-ui-ux/references/design/lovable.md +0 -301
  111. package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
  112. package/plugin/skills/frontend-ui-ux/references/design/meta.md +0 -369
  113. package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
  114. package/plugin/skills/frontend-ui-ux/references/design/minimax.md +0 -260
  115. package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
  116. package/plugin/skills/frontend-ui-ux/references/design/miro.md +0 -111
  117. package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
  118. package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
  119. package/plugin/skills/frontend-ui-ux/references/design/nike.md +0 -366
  120. package/plugin/skills/frontend-ui-ux/references/design/notion.md +0 -312
  121. package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
  122. package/plugin/skills/frontend-ui-ux/references/design/ollama.md +0 -270
  123. package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
  124. package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
  125. package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
  126. package/plugin/skills/frontend-ui-ux/references/design/playstation.md +0 -367
  127. package/plugin/skills/frontend-ui-ux/references/design/posthog.md +0 -259
  128. package/plugin/skills/frontend-ui-ux/references/design/raycast.md +0 -271
  129. package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
  130. package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
  131. package/plugin/skills/frontend-ui-ux/references/design/renault.md +0 -314
  132. package/plugin/skills/frontend-ui-ux/references/design/replicate.md +0 -264
  133. package/plugin/skills/frontend-ui-ux/references/design/resend.md +0 -306
  134. package/plugin/skills/frontend-ui-ux/references/design/revolut.md +0 -188
  135. package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
  136. package/plugin/skills/frontend-ui-ux/references/design/sanity.md +0 -360
  137. package/plugin/skills/frontend-ui-ux/references/design/sentry.md +0 -265
  138. package/plugin/skills/frontend-ui-ux/references/design/shopify.md +0 -353
  139. package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
  140. package/plugin/skills/frontend-ui-ux/references/design/spacex.md +0 -197
  141. package/plugin/skills/frontend-ui-ux/references/design/spotify.md +0 -249
  142. package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
  143. package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
  144. package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
  145. package/plugin/skills/frontend-ui-ux/references/design/stripe.md +0 -325
  146. package/plugin/skills/frontend-ui-ux/references/design/supabase.md +0 -258
  147. package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
  148. package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
  149. package/plugin/skills/frontend-ui-ux/references/design/tesla.md +0 -289
  150. package/plugin/skills/frontend-ui-ux/references/design/theverge.md +0 -342
  151. package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
  152. package/plugin/skills/frontend-ui-ux/references/design/uber.md +0 -298
  153. package/plugin/skills/frontend-ui-ux/references/design/vercel.md +0 -313
  154. package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
  155. package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
  156. package/plugin/skills/frontend-ui-ux/references/design/warp.md +0 -256
  157. package/plugin/skills/frontend-ui-ux/references/design/webflow.md +0 -95
  158. package/plugin/skills/frontend-ui-ux/references/design/wired.md +0 -281
  159. package/plugin/skills/frontend-ui-ux/references/design/wise.md +0 -176
  160. package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
  161. package/plugin/skills/frontend-ui-ux/references/design/zapier.md +0 -331
  162. package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
  163. package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
  164. package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
  165. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
  166. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
  167. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
  168. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
  169. package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
  170. package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
  171. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
  172. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
  173. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
  174. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
  175. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
  176. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
  177. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
  178. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
  179. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
  180. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
  181. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
  182. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
  183. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
  184. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
  185. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
  186. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
  187. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
  188. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
  189. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
  190. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
  191. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
  192. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
  193. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
  194. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
  195. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
  196. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
  197. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
  198. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
  199. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
  200. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
  201. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
  202. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
  203. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
  204. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
  205. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
  206. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
  207. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
  208. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
  209. package/plugin/skills/frontend-ui-ux/references/evidence-review.md +0 -119
  210. package/plugin/skills/frontend-ui-ux/references/house-styles.md +0 -234
  211. package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +0 -115
  212. package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +0 -98
  213. package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +0 -48
  214. package/plugin/skills/frontend-ui-ux/references/motion-guide.md +0 -153
  215. package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +0 -101
  216. package/plugin/skills/frontend-ui-ux/references/perfection/README.md +0 -160
  217. package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
  218. package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +0 -91
  219. package/plugin/skills/frontend-ui-ux/references/product-direction.md +0 -92
  220. package/plugin/skills/frontend-ui-ux/references/production-interview.md +0 -71
  221. package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +0 -103
  222. package/plugin/skills/frontend-ui-ux/references/slop-register.md +0 -139
  223. package/plugin/skills/frontend-ui-ux/references/system-foundations.md +0 -90
  224. package/plugin/skills/frontend-ui-ux/references/taste-direction.md +0 -79
  225. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
  226. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
  227. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
  228. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
  229. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
  230. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
  231. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
  232. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
  233. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
  234. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
  235. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
  236. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
  237. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
  238. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
  239. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
  240. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
  241. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
  242. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
  243. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
  244. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
  245. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
  246. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
  247. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
  248. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
  249. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
  250. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
  251. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
  252. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
  253. package/plugin/skills/frontend-ui-ux/references/visual-language.md +0 -90
  254. package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -55
  255. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
  256. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
  257. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
  258. package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +0 -217
  259. package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
  260. package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
  261. package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
  262. package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
  263. package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
  264. package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
  265. package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
  266. package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
  267. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +0 -196
  268. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +0 -1555
  269. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +0 -153
  270. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +0 -57
  271. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +0 -129
  272. package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +0 -322
  273. package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
  274. package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
  275. package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
  276. package/plugin/skills/frontend-ui-ux/scripts/search.mjs +0 -43
  277. package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
  278. package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +0 -143
  279. package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
  280. package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +0 -90
  281. package/plugin/skills/lit-diagram-drawer/NOTICE +0 -33
  282. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
  283. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
  284. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
  285. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
  286. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
  287. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
  288. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
  289. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
  290. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
  291. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
  292. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
  293. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
  294. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
  295. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
  296. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
  297. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
  298. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
  299. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
  300. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
  301. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
  302. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
  303. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
  304. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
  305. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
  306. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
  307. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
  308. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
  309. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
  310. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
  311. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
  312. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
  313. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
  314. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
  315. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
  316. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
  317. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
  318. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
  319. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
  320. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
  321. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
  322. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
  323. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
  324. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
  325. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
  326. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
  327. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
  328. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
  329. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
  330. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
  331. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
  332. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
  333. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
  334. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
  335. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
  336. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
  337. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
  338. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
  339. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
  340. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
  341. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
  342. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
  343. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
  344. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
  345. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
  346. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
  347. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
  348. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
  349. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
  350. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
  351. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
  352. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
  353. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
  354. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
  355. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
  356. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
  357. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
  358. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
  359. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
  360. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
  361. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
  362. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
  363. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
  364. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
  365. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
  366. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
  367. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
  368. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
  369. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
  370. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
  371. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
  372. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
  373. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
  374. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
  375. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
  376. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
  377. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
  378. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
  379. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
  380. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
  381. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
  382. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
  383. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
  384. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
  385. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
  386. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
  387. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
  388. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
  389. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
  390. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
  391. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
  392. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
  393. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
  394. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
  395. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
  396. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
  397. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
  398. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
  399. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
  400. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
  401. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
  402. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
  403. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
  404. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
  405. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
  406. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
  407. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
  408. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
  409. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
  410. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
  411. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
  412. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
  413. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
  414. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
  415. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
  416. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
  417. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
  418. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
  419. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
  420. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
  421. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
  422. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
  423. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
  424. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
  425. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
  426. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
  427. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
  428. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
  429. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
  430. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
  431. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
  432. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
  433. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
  434. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
  435. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
  436. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
  437. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
  438. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
  439. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
  440. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
  441. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
  442. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
  443. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
  444. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
  445. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
  446. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
  447. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
  448. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
  449. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
  450. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
  451. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
  452. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
  453. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
  454. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
  455. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
  456. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
  457. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
  458. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
  459. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
  460. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
  461. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
  462. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
  463. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
  464. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
  465. package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
  466. package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  467. package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
  468. package/plugin/skills/lit-diagram-drawer/assets/icons.html +0 -231
  469. package/plugin/skills/lit-diagram-drawer/assets/index.html +0 -1
  470. package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
  471. package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
  472. package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
  473. package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
  474. package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
  475. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
  476. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
  477. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +0 -1
  478. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
  479. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
  480. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +0 -1
  481. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
  482. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
  483. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +0 -1
  484. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
  485. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
  486. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +0 -1
  487. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
  488. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
  489. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +0 -1
  490. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
  491. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
  492. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +0 -1
  493. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
  494. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
  495. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +0 -1
  496. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
  497. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
  498. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +0 -1
  499. package/plugin/skills/lit-diagram-drawer/references/accessibility.md +0 -37
  500. package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +0 -86
  501. package/plugin/skills/lit-diagram-drawer/references/export.md +0 -34
  502. package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +0 -66
  503. package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
  504. package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
  505. package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
  506. package/plugin/skills/lit-diagram-drawer/references/import-schema.md +0 -28
  507. package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
  508. package/plugin/skills/lit-diagram-drawer/references/motion.md +0 -29
  509. package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
  510. package/plugin/skills/lit-diagram-drawer/references/output-spec.md +0 -48
  511. package/plugin/skills/lit-diagram-drawer/references/playbooks.md +0 -67
  512. package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
  513. package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
  514. package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
  515. package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
  516. package/plugin/skills/lit-diagram-drawer/references/profiles.md +0 -24
  517. package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
  518. package/plugin/skills/lit-diagram-drawer/references/style-guide.md +0 -76
  519. package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
  520. package/plugin/skills/lit-diagram-drawer/references/type-bar.md +0 -51
  521. package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
  522. package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
  523. package/plugin/skills/lit-diagram-drawer/references/type-bump.md +0 -49
  524. package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
  525. package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
  526. package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
  527. package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
  528. package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
  529. package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
  530. package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
  531. package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
  532. package/plugin/skills/lit-diagram-drawer/references/type-er.md +0 -49
  533. package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
  534. package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
  535. package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
  536. package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
  537. package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
  538. package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
  539. package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
  540. package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
  541. package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
  542. package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
  543. package/plugin/skills/lit-diagram-drawer/references/type-journey.md +0 -54
  544. package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
  545. package/plugin/skills/lit-diagram-drawer/references/type-layers.md +0 -54
  546. package/plugin/skills/lit-diagram-drawer/references/type-line.md +0 -54
  547. package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
  548. package/plugin/skills/lit-diagram-drawer/references/type-loop.md +0 -54
  549. package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
  550. package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
  551. package/plugin/skills/lit-diagram-drawer/references/type-nested.md +0 -59
  552. package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
  553. package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
  554. package/plugin/skills/lit-diagram-drawer/references/type-polar.md +0 -67
  555. package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
  556. package/plugin/skills/lit-diagram-drawer/references/type-process.md +0 -58
  557. package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
  558. package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
  559. package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
  560. package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
  561. package/plugin/skills/lit-diagram-drawer/references/type-radar.md +0 -57
  562. package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
  563. package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
  564. package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
  565. package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
  566. package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
  567. package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
  568. package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
  569. package/plugin/skills/lit-diagram-drawer/references/type-state.md +0 -59
  570. package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
  571. package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
  572. package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
  573. package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
  574. package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
  575. package/plugin/skills/lit-diagram-drawer/references/type-tree.md +0 -54
  576. package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
  577. package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
  578. package/plugin/skills/lit-diagram-drawer/references/type-venn.md +0 -51
  579. package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
  580. package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
  581. package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +0 -76
  582. package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
  583. package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
  584. package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
  585. package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +0 -13
  586. package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -219
  587. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +0 -9
  588. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +0 -277
  589. package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -25
  590. package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +0 -162
  591. package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +0 -147
  592. package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +0 -148
  593. package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +0 -119
  594. package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +0 -85
  595. package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +0 -48
  596. package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +0 -234
  597. package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +0 -104
  598. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +0 -115
  599. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +0 -70
  600. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +0 -178
  601. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +0 -137
  602. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +0 -80
  603. package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
  604. package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +0 -11
  605. package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -85
  606. package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -16
  607. package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
  608. package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
  609. package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
  610. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +0 -226
  611. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -146
  612. package/plugin/skills/lit-docx/NOTICE +0 -35
  613. package/plugin/skills/lit-docx/references/build-loop.md +0 -96
  614. package/plugin/skills/lit-docx/references/components.md +0 -287
  615. package/plugin/skills/lit-docx/references/direction-step.md +0 -339
  616. package/plugin/skills/lit-docx/references/examples/01-report-ko.md +0 -166
  617. package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +0 -96
  618. package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +0 -170
  619. package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +0 -141
  620. package/plugin/skills/lit-docx/references/examples/05-memo-en.md +0 -56
  621. package/plugin/skills/lit-docx/references/examples/06-journal-en.md +0 -129
  622. package/plugin/skills/lit-docx/references/examples/07-report-en.md +0 -123
  623. package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +0 -122
  624. package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +0 -40
  625. package/plugin/skills/lit-docx/references/frontmatter_schema.md +0 -94
  626. package/plugin/skills/lit-docx/references/journal_style_spec.md +0 -89
  627. package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +0 -43
  628. package/plugin/skills/lit-docx/references/page-composition.md +0 -319
  629. package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
  630. package/plugin/skills/lit-docx/references/slop_rules.md +0 -88
  631. package/plugin/skills/lit-docx/references/tonalities/brief.md +0 -170
  632. package/plugin/skills/lit-docx/references/tonalities/journal.md +0 -173
  633. package/plugin/skills/lit-docx/references/tonalities/manual.md +0 -182
  634. package/plugin/skills/lit-docx/references/tonalities/memo.md +0 -171
  635. package/plugin/skills/lit-docx/references/tonalities/proposal.md +0 -181
  636. package/plugin/skills/lit-docx/references/tonalities/report.md +0 -199
  637. package/plugin/skills/lit-docx/scripts/clean_markdown.py +0 -95
  638. package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1395
  639. package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -301
  640. package/plugin/skills/lit-docx/scripts/convert_pdf.py +0 -139
  641. package/plugin/skills/lit-docx/scripts/docx_design.py +0 -2449
  642. package/plugin/skills/lit-docx/scripts/docx_layout.py +0 -959
  643. package/plugin/skills/lit-docx/scripts/edit_docx.py +0 -306
  644. package/plugin/skills/lit-docx/scripts/embed_images.py +0 -78
  645. package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
  646. package/plugin/skills/lit-docx/scripts/pdf_fonts.py +0 -83
  647. package/plugin/skills/lit-docx/scripts/qa_docx.py +0 -234
  648. package/plugin/skills/lit-docx/scripts/slop_lint.py +0 -573
  649. package/plugin/skills/lit-docx/scripts/visual_audit.py +0 -48
  650. package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
  651. package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  652. package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
  653. package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  654. package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
  655. package/plugin/skills/lit-docx/templates/latex/acs/README.md +0 -5
  656. package/plugin/skills/lit-docx/templates/latex/acs/template.tex +0 -41
  657. package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
  658. package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +0 -42
  659. package/plugin/skills/lit-docx/templates/latex/ieee/README.md +0 -5
  660. package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +0 -41
  661. package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
  662. package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -41
  663. package/plugin/skills/lit-docx/templates/latex/nature/README.md +0 -5
  664. package/plugin/skills/lit-docx/templates/latex/nature/template.tex +0 -41
  665. package/plugin/skills/lit-docx/templates/registry.yaml +0 -1366
  666. package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
  667. package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
  668. package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
  669. package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
  670. package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
  671. package/plugin/skills/lit-docx/templates/tonalities/report.yaml +0 -26
  672. package/plugin/skills/lit-pptx/NOTICE +0 -35
  673. package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  674. package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  675. package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  676. package/plugin/skills/lit-pptx/assets/example-a.png +0 -0
  677. package/plugin/skills/lit-pptx/assets/example-b.png +0 -0
  678. package/plugin/skills/lit-pptx/assets/example-c.png +0 -0
  679. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
  680. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
  681. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
  682. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
  683. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
  684. package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +0 -94
  685. package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
  686. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  687. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  688. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
  689. package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
  690. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
  691. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
  692. package/plugin/skills/lit-pptx/fonts/provenance.json +0 -109
  693. package/plugin/skills/lit-pptx/references/agents/analyst.md +0 -49
  694. package/plugin/skills/lit-pptx/references/agents/antithesis.md +0 -59
  695. package/plugin/skills/lit-pptx/references/agents/architect.md +0 -44
  696. package/plugin/skills/lit-pptx/references/agents/critic.md +0 -42
  697. package/plugin/skills/lit-pptx/references/agents/synthesizer.md +0 -47
  698. package/plugin/skills/lit-pptx/references/agents/thesis.md +0 -33
  699. package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +0 -131
  700. package/plugin/skills/lit-pptx/references/authoring-guide.md +0 -250
  701. package/plugin/skills/lit-pptx/references/build-loop.md +0 -117
  702. package/plugin/skills/lit-pptx/references/consensus-protocol.md +0 -125
  703. package/plugin/skills/lit-pptx/references/data-display-cookbook.md +0 -52
  704. package/plugin/skills/lit-pptx/references/density-and-fill.md +0 -163
  705. package/plugin/skills/lit-pptx/references/design-system-azure.md +0 -61
  706. package/plugin/skills/lit-pptx/references/direction-step.md +0 -203
  707. package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
  708. package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
  709. package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
  710. package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
  711. package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
  712. package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
  713. package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
  714. package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
  715. package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
  716. package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
  717. package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
  718. package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
  719. package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
  720. package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
  721. package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
  722. package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
  723. package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
  724. package/plugin/skills/lit-pptx/references/interview-protocol.md +0 -113
  725. package/plugin/skills/lit-pptx/references/layout-families.md +0 -194
  726. package/plugin/skills/lit-pptx/references/stages/autopilot.md +0 -48
  727. package/plugin/skills/lit-pptx/references/stages/interview.md +0 -52
  728. package/plugin/skills/lit-pptx/references/stages/plan.md +0 -42
  729. package/plugin/skills/lit-pptx/references/title-treatments.md +0 -113
  730. package/plugin/skills/lit-pptx/references/tonalities/atlas.md +0 -139
  731. package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
  732. package/plugin/skills/lit-pptx/references/tonalities/chalk.md +0 -148
  733. package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
  734. package/plugin/skills/lit-pptx/references/tonalities/gazette.md +0 -149
  735. package/plugin/skills/lit-pptx/references/tonalities/ledger.md +0 -149
  736. package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
  737. package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
  738. package/plugin/skills/lit-pptx/references/tonalities/night.md +0 -147
  739. package/plugin/skills/lit-pptx/references/tonalities/paper.md +0 -151
  740. package/plugin/skills/lit-pptx/references/tonalities/riso.md +0 -137
  741. package/plugin/skills/lit-pptx/references/tonalities/signal.md +0 -150
  742. package/plugin/skills/lit-pptx/references/tonalities/studio.md +0 -131
  743. package/plugin/skills/lit-pptx/scripts/compile-deck.js +0 -462
  744. package/plugin/skills/lit-pptx/scripts/craft_extras.py +0 -1077
  745. package/plugin/skills/lit-pptx/scripts/deck_craft.py +0 -363
  746. package/plugin/skills/lit-pptx/scripts/embed_fonts.py +0 -227
  747. package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
  748. package/plugin/skills/lit-pptx/scripts/layout_inventory.py +0 -418
  749. package/plugin/skills/lit-pptx/scripts/learn_template.py +0 -446
  750. package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
  751. package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
  752. package/plugin/skills/lit-pptx/scripts/lib/font-map.js +0 -79
  753. package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
  754. package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
  755. package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
  756. package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
  757. package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
  758. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
  759. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2240
  760. package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
  761. package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
  762. package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
  763. package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
  764. package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
  765. package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
  766. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +0 -793
  767. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +0 -12
  768. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +0 -15
  769. package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +0 -279
  770. package/plugin/skills/lit-pptx/scripts/office_data.py +0 -493
  771. package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +0 -73
  772. package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +0 -199
  773. package/plugin/skills/lit-pptx/scripts/package.json +0 -4
  774. package/plugin/skills/lit-pptx/scripts/qa_deck.py +0 -795
  775. package/plugin/skills/lit-pptx/scripts/render_pages.py +0 -147
  776. package/plugin/skills/lit-pptx/scripts/validate_pptx.py +0 -230
  777. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
  778. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
  779. package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
  780. package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
  781. package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
  782. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
  783. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
  784. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
  785. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
  786. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
  787. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
  788. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
  789. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
  790. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
  791. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
  792. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
  793. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
  794. package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
  795. package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
  796. package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
  797. package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
  798. package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
  799. package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
  800. package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
  801. package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
  802. package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
  803. package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
  804. package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
  805. package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
  806. package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
  807. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
  808. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
  809. package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
  810. package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
  811. package/plugin/skills/lit-schematic/references/cutaway-outputs.md +0 -70
  812. package/plugin/skills/lit-schematic/references/isometric-craft.md +0 -101
  813. package/plugin/skills/lit-schematic/references/journal-figures.md +0 -72
  814. package/plugin/skills/lit-schematic/references/kit-api.md +0 -134
  815. package/plugin/skills/lit-schematic/references/pfd-and-layout.md +0 -53
  816. package/plugin/skills/lit-schematic/references/pid-drafting.md +0 -103
  817. package/plugin/skills/lit-schematic/references/pid-symbols.md +0 -163
  818. package/plugin/skills/lit-schematic/references/verification.md +0 -100
  819. package/plugin/skills/lit-schematic/scripts/doctor.mjs +0 -57
  820. package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
  821. package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
  822. package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
  823. package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
  824. package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
  825. package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
  826. package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
  827. package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
  828. package/plugin/skills/lit-schematic/scripts/lib/png.mjs +0 -132
  829. package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
  830. package/plugin/skills/lit-schematic/scripts/lib/route.mjs +0 -218
  831. package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +0 -890
  832. package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +0 -82
  833. package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
  834. package/plugin/skills/lit-schematic/scripts/motion.mjs +0 -129
  835. package/plugin/skills/lit-schematic/scripts/qa.mjs +0 -92
  836. package/plugin/skills/lit-schematic/scripts/render.mjs +0 -233
  837. package/plugin/skills/lit-schematic/scripts/scaffold.mjs +0 -60
  838. package/plugin/skills/lit-scientific-visualization/LICENSE +0 -21
  839. package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +0 -197
  840. package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +0 -75
  841. package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +0 -74
  842. package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +0 -78
  843. package/plugin/skills/lit-scientific-visualization/evals/evals.json +0 -158
  844. package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +0 -278
  845. package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +0 -380
  846. package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +0 -359
  847. package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +0 -608
  848. package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
  849. package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +0 -217
  850. package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +0 -293
  851. package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +0 -238
  852. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +0 -23
  853. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +0 -230
  854. package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +0 -467
  855. package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +0 -51
  856. package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +0 -114
  857. package/plugin/skills/lit-typographic-motion/engine/NOTICE +0 -23
  858. package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
  859. package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
  860. package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
  861. package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
  862. package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
  863. package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
  864. package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
  865. package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
  866. package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
  867. package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
  868. package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
  869. package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
  870. package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
  871. package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
  872. package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
  873. package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -172
  874. package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +0 -298
  875. package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +0 -143
  876. package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
  877. package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +0 -164
  878. package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -328
  879. package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -104
  880. package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -210
  881. package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -347
  882. package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
  883. package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
  884. package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -139
  885. package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
  886. package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +0 -385
  887. package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
  888. package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
  889. package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +0 -105
  890. package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -38
  891. package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -121
  892. package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +0 -34
  893. package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
  894. package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +0 -178
  895. package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -603
  896. package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
  897. package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
  898. package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -349
  899. package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
  900. package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
  901. package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
  902. package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
  903. package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
  904. package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -180
  905. package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -177
  906. package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -427
  907. package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -428
  908. package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +0 -572
  909. package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
  910. package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +0 -213
  911. package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
  912. package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +0 -146
  913. package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
  914. package/plugin/skills/lit-typographic-motion/engine/package-lock.json +0 -25
  915. package/plugin/skills/lit-typographic-motion/engine/package.json +0 -10
  916. package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -49
  917. package/plugin/skills/lit-typographic-motion/engine/stage/init.js +0 -298
  918. package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
  919. package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +0 -162
  920. package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -823
  921. package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
  922. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
  923. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
  924. package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
  925. package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
  926. package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
  927. package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
  928. package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
  929. package/plugin/skills/lit-typographic-motion/engine/web/index.html +0 -6
  930. package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
  931. package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
  932. package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
  933. package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
  934. package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
  935. package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
  936. package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
  937. package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
  938. package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
  939. package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
  940. package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
  941. package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
  942. package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
  943. package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
  944. package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
  945. package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
  946. package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
  947. package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
  948. package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
  949. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
  950. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
  951. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
  952. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
  953. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
  954. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
  955. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
  956. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
  957. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
  958. package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
  959. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
  960. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
  961. package/plugin/skills/lit-typographic-motion/fonts/manifest.json +0 -455
  962. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
  963. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
  964. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
  965. package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -42
  966. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
  967. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
  968. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
  969. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
  970. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
  971. package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
  972. package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
  973. package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  974. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
  975. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
  976. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
  977. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
  978. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
  979. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
  980. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
  981. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
  982. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
  983. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
  984. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -69
  985. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
  986. package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -97
  987. package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
  988. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -69
  989. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
  990. package/plugin/skills/lit-typographic-motion/references/brief-schema.md +0 -119
  991. package/plugin/skills/lit-typographic-motion/references/cover.md +0 -424
  992. package/plugin/skills/lit-typographic-motion/references/craft-loop.md +0 -70
  993. package/plugin/skills/lit-typographic-motion/references/depth.md +0 -122
  994. package/plugin/skills/lit-typographic-motion/references/engine-contract.md +0 -124
  995. package/plugin/skills/lit-typographic-motion/references/look.md +0 -122
  996. package/plugin/skills/lit-typographic-motion/references/runtime.md +0 -67
  997. package/plugin/skills/lit-typographic-motion/references/sound.md +0 -152
  998. package/plugin/skills/lit-typographic-motion/references/stage.md +0 -256
  999. package/plugin/skills/lit-typographic-motion/references/studio.md +0 -245
  1000. package/plugin/skills/lit-typographic-motion/references/style-bibles.md +0 -141
  1001. package/plugin/skills/lit-typographic-motion/references/treatment.md +0 -214
  1002. package/plugin/skills/lit-typographic-motion/references/type-craft.md +0 -87
  1003. package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -111
  1004. package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -95
  1005. package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +0 -205
  1006. package/plugin/skills/lit-typographic-motion/styles/paper.json +0 -41
  1007. package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
  1008. package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
  1009. package/plugin/skills/lit-typographic-motion/styles/tidal.json +0 -41
  1010. package/plugin/skills/readme-studio/references/decoration-and-navigation.md +0 -55
  1011. package/plugin/skills/readme-studio/references/facts-and-assembly.md +0 -19
  1012. package/plugin/skills/readme-studio/references/production-interview.md +0 -11
  1013. package/plugin/skills/readme-studio/references/render-and-deliver.md +0 -44
  1014. package/plugin/skills/readme-studio/references/type-and-background.md +0 -23
  1015. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +0 -133
  1016. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +0 -6
  1017. package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +0 -77
  1018. package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
  1019. package/plugin/skills/readme-studio/templates/cover-source.json +0 -21
  1020. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +0 -30
  1021. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
  1022. package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
  1023. package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
  1024. package/plugin/skills/readme-studio/templates/readme-cover-section.md +0 -75
  1025. package/plugin/skills/readme-studio/templates/readme-facts.json +0 -4
  1026. package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
  1027. package/plugin/skills/readme-studio/templates/remotion-cover/package.json +0 -7
  1028. package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -36
  1029. package/plugin/skills/readme-studio/templates/typography/package-lock.json +0 -133
  1030. package/plugin/skills/readme-studio/templates/typography/package.json +0 -6
  1031. package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
  1032. package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -63
  1033. package/plugin/skills/visual-qa/references/breakage-catalogue.md +0 -70
  1034. package/plugin/skills/visual-qa/references/capture-playbook.md +0 -96
  1035. package/plugin/skills/visual-qa/references/complete-contract.md +0 -411
  1036. package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +0 -50
  1037. package/plugin/skills/visual-qa/references/reviewer-charters.md +0 -70
  1038. package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
  1039. package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
  1040. package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
  1041. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
  1042. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
  1043. package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
  1044. package/plugin/skills/visual-qa/scripts/ansi.ts +0 -17
  1045. package/plugin/skills/visual-qa/scripts/cli.mjs +0 -101
  1046. package/plugin/skills/visual-qa/scripts/cli.ts +0 -96
  1047. package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
  1048. package/plugin/skills/visual-qa/scripts/east-asian-width.ts +0 -72
  1049. package/plugin/skills/visual-qa/scripts/errors.mjs +0 -12
  1050. package/plugin/skills/visual-qa/scripts/evidence-io.mjs +0 -184
  1051. package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
  1052. package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
  1053. package/plugin/skills/visual-qa/scripts/evidence.mjs +0 -421
  1054. package/plugin/skills/visual-qa/scripts/image-diff.mjs +0 -89
  1055. package/plugin/skills/visual-qa/scripts/image-diff.ts +0 -109
  1056. package/plugin/skills/visual-qa/scripts/png-chunks.mjs +0 -107
  1057. package/plugin/skills/visual-qa/scripts/png-crc.ts +0 -27
  1058. package/plugin/skills/visual-qa/scripts/png-decode.mjs +0 -143
  1059. package/plugin/skills/visual-qa/scripts/png-decode.ts +0 -206
  1060. package/plugin/skills/visual-qa/scripts/png-synth.ts +0 -57
  1061. package/plugin/skills/visual-qa/scripts/review-rules.mjs +0 -137
  1062. package/plugin/skills/visual-qa/scripts/strict-json.mjs +0 -143
  1063. package/plugin/skills/visual-qa/scripts/terminal-text.mjs +0 -117
  1064. package/plugin/skills/visual-qa/scripts/tui-check.mjs +0 -74
  1065. package/plugin/skills/visual-qa/scripts/tui-grid.ts +0 -88
  1066. package/plugin/skills/visual-qa/scripts/types.ts +0 -54
@@ -1,959 +0,0 @@
1
- """docx_layout.py — the document output checks qa_docx.py runs on a converted .docx.
2
-
3
- Two groups. The structural checks read the Word file (and the frontmatter of its Markdown source):
4
-
5
- heading.declarative a heading, the title or the subtitle is a sentence, not a noun-phrase label
6
- heading.order heading levels never skip downward, and the first heading is h1 or h2
7
- notice.dash the frontmatter notice joins its label and line with a colon, not a spaced dash (FAIL on a
8
- tonality run, advice on the plain and publisher paths)
9
- component.count components per kind (cover, callout, sidebar, pullquote, keyfigures, columns)
10
-
11
- The page checks need the document rendered (qa_docx.py --layout; soffice converts it to PDF and
12
- PyMuPDF reads the text lines, drawings and pictures of each page, in points):
13
-
14
- fill.page no body page is filled under 0.35 of its frame (the cover and the last page excepted)
15
- memo.fit a memo never spills onto a second page that it fills under a quarter of the frame
16
- page.spill a two-page document fills its second page to 0.4 of the frame or more, and no
17
- document ends on a page holding a paragraph or two (under an eighth of the frame)
18
- list.split a list of up to six items stands on one page (or in one column); in a column body a list of
19
- five or six may break once with two items or more on each side
20
- heading.apart a heading and its short lead sentence stand on the page where the table (up to eight body
21
- rows) they open starts
22
- heading.stranded no page ends on a heading
23
- heading.column in a column body a heading never ends a column while its text opens the next one
24
- columns.balance in a column body no column stops a quarter of the frame short beside one that runs to the
25
- foot, and the last page sets its columns to about the same depth
26
- heading.wrap the title, the subtitle and every heading wrap only between words
27
- title.lines the title takes at most three lines
28
- folio.total a "page / total" folio counts the pages the reader has
29
- sidebar.overlap a floating sidebar ends before the next heading starts beside it
30
- table.split a table that fits one frame (0.9 of its height) stays on one page and with its
31
- caption, except an allowed long-table split (spec Amendments 3: tonality run, header
32
- + 6 body rows or more, 3 body rows each side, the table started above 0.75 of the
33
- frame); a component box (key figures, callout, sidebar) always stays whole
34
- figure.split a picture and its caption stand on the same page
35
- component.variety a document of four or more pages uses at least two component kinds
36
- cover.block a filled shape covers more than a quarter of the cover page (tonality runs)
37
-
38
- The restraint checks (spec Amendments 4, A4.11) read the Word file; they FAIL on a tonality run and are advice on
39
- the plain and publisher paths, except date.iso, which holds on every path:
40
-
41
- color.accent-kinds more than one non-ink hue, or the accent on more than two element kinds (figures aside)
42
- heading.ink a heading set in a colour instead of ink
43
- heading.ratio h1 more than 1.5 times the body size
44
- table.fill a shaded data-table cell, or a component tint darker than L 95 %
45
- component.budget more than three component kinds, more than one key-figure strip, any pull quote, or key
46
- figures on the cover
47
- date.iso an ISO date (2026-10-01) in the text of a Korean document
48
- furniture.chip a coloured or shaded notice in a page header
49
- tonality.structure (qa_docx.py --compare) two tonalities of one source differ in fewer than three structural
50
- features: title block, summary form, heading numbering, component set, running head, contents
51
-
52
- Each finding is {"check", "severity" ("FAIL" or "ADVISORY"), "page" or None, "detail", "fix"}.
53
- """
54
-
55
- from __future__ import annotations
56
-
57
- import re
58
- import statistics
59
- import zipfile
60
- from pathlib import Path
61
- from xml.etree import ElementTree as ET
62
-
63
- W = "{http://schemas.openxmlformats.org/wordprocessingml/2006/main}"
64
- PIC = "{http://schemas.openxmlformats.org/drawingml/2006/main}blip"
65
- KINDS = ("cover", "callout", "sidebar", "pullquote", "keyfigures", "columns")
66
- FILL_MIN = 0.35
67
- MEMO_SPILL = 0.25
68
- SPILL_SECOND = 0.4 # docx-spec Amendments 6: page 2 of a two-page document
69
- SPILL_LAST = 0.125 # the last page of any document
70
- SHORT_LIST = 6
71
- TITLE_LINES = 3
72
- TABLE_CAPTION = re.compile(r"^(?:표|Table)\d+[.:]") # on normalised text (no spaces)
73
- FIT_SHARE = 0.9
74
-
75
-
76
- def finding(check: str, severity: str, page, detail: str, fix: str) -> dict:
77
- return {"check": check, "severity": severity, "page": page, "detail": detail, "fix": fix}
78
-
79
-
80
- def norm(text: str) -> str:
81
- """Text as both sides print it: no spaces, dashes and quotes folded (the converter sets 1-3 as 1–3)."""
82
- text = re.sub(r"\s+", "", text or "")
83
- return text.translate(str.maketrans({"–": "-", "—": "-", "‘": "'", "’": "'", "“": '"', "”": '"'}))
84
-
85
-
86
- # ── heading.declarative ─────────────────────────────────────────────────────
87
- #
88
- # A heading names what its section covers; the finding goes in the first sentence under it. Korean is
89
- # read on its last word: a sentence ending (다, 요, 죠, 니다) or a nominalised claim (…함, …됨, …음 after
90
- # a verb stem) makes the line a sentence. English is read for a closing full stop or a finite verb (an
91
- # auxiliary, or a reporting verb in the past or the third person). A closing parenthesis is set aside
92
- # ("시범 운영 결과 (예시)"), and a question is not a claim.
93
-
94
- KO_SENTENCE = re.compile(r"(?:니다|[어아해세에예네지군래게]요|죠|[었았였했겠됐](?:다|음)|[가-힣]다|[가-힣](?:함|됨)|(?:있|없)음)$")
95
- KO_LABEL_WORDS = {"바다", "판다", "소다", "람다", "캐나다", "어젠다", "아젠다", "포함", "보다", "함", "다", "중심", "가능성", "다음"}
96
- EN_AUX = re.compile(r"\b(?:is|are|was|were|has|have|had|will|would|can|could|should|must|does|did|won't|isn't|aren't|wasn't|doesn't|didn't)\b", re.I)
97
- EN_FINITE = {
98
- "grew", "grows", "rose", "rises", "fell", "falls", "doubled", "doubles", "tripled", "halved", "increased", "increases",
99
- "decreased", "decreases", "declined", "declines", "improved", "improves", "dropped", "drops", "reached", "reaches",
100
- "exceeded", "exceeds", "missed", "misses", "stays", "stayed", "remains", "remained", "shows", "showed", "needs",
101
- "makes", "made", "drives", "drove", "leads", "led", "beats", "cuts", "saves", "saved", "pays", "paid", "works",
102
- "worked", "takes", "took", "wins", "won", "lost", "loses", "fails", "failed", "outperforms", "outperformed",
103
- "explains", "explained", "matters", "lifts", "lifted", "slowed", "slows", "delivers", "delivered", "requires",
104
- }
105
-
106
-
107
- def declarative(text: str) -> bool:
108
- t = re.sub(r"\s+", " ", str(text or "")).strip()
109
- t = re.sub(r"^(?:\d+(?:\.\d+)*\.?|[A-Z]\.|[IVX]+\.|[□○■▪•-])\s+", "", t) # a number or marker the treatment adds
110
- t = re.sub(r"\s*\([^()]*\)$", "", t).strip().rstrip("\"'”’")
111
- if not t or t.endswith("?") or t[0] in "“\"「『‘'":
112
- return False
113
- if re.search(r"[가-힣]", t):
114
- last = re.sub(r"[.!…]+$", "", t.split(" ")[-1])
115
- return last not in KO_LABEL_WORDS and bool(KO_SENTENCE.search(last))
116
- if t.endswith((".", "!")):
117
- return True
118
- words = re.findall(r"[A-Za-z']+", t)
119
- return bool(EN_AUX.search(t)) or any(w.lower() in EN_FINITE for w in words[1:])
120
-
121
-
122
- # ── Reading the Word file ───────────────────────────────────────────────────
123
-
124
- class Styles:
125
- """Paragraph style ids to heading levels and names, following basedOn."""
126
-
127
- def __init__(self, root):
128
- self.s = {}
129
- for st in root.findall(W + "style") if root is not None else []:
130
- name = st.find(W + "name")
131
- based = st.find(W + "basedOn")
132
- outline = st.find(f"{W}pPr/{W}outlineLvl")
133
- self.s[st.get(W + "styleId")] = (
134
- name.get(W + "val") if name is not None else "",
135
- based.get(W + "val") if based is not None else None,
136
- int(outline.get(W + "val")) if outline is not None else None,
137
- )
138
-
139
- def chain(self, sid):
140
- seen = set()
141
- while sid and sid in self.s and sid not in seen:
142
- seen.add(sid)
143
- yield sid, self.s[sid]
144
- sid = self.s[sid][1]
145
-
146
- def level(self, sid):
147
- for key, (name, _, outline) in self.chain(sid):
148
- m = re.match(r"(?i)^heading\s*(\d)$", name or "") or re.match(r"^Heading(\d)$", key)
149
- if m:
150
- return int(m.group(1))
151
- if (name or "").lower() in ("title", "subtitle"):
152
- return None
153
- if outline is not None and outline < 9:
154
- return outline + 1
155
- return None
156
-
157
- def names(self, sid) -> str:
158
- return " ".join(f"{key} {name}" for key, (name, _, _) in self.chain(sid)).lower()
159
-
160
-
161
- def _text(el) -> str:
162
- return "".join(t.text or "" for t in el.iter(W + "t"))
163
-
164
-
165
- def _body_blocks(parent):
166
- for child in parent:
167
- if child.tag == W + "sdt":
168
- content = child.find(W + "sdtContent")
169
- if content is not None:
170
- yield from _body_blocks(content)
171
- elif child.tag in (W + "p", W + "tbl"):
172
- yield child
173
-
174
-
175
- def _columns(blocks: list, sect) -> None:
176
- """The blocks a section break closes take its column count ("cols")."""
177
- cols = sect.find(W + "cols") if sect is not None else None
178
- n = int(cols.get(W + "num", "1") or 1) if cols is not None else 1
179
- for b in reversed(blocks):
180
- if "cols" in b:
181
- break
182
- b["cols"] = n
183
-
184
-
185
- def read_docx(path: Path) -> dict:
186
- """Blocks in reading order ({"t": "h"|"p"|"cap"|"img"|"tbl"}), components, body frame and sections."""
187
- with zipfile.ZipFile(path) as z:
188
- body = ET.fromstring(z.read("word/document.xml")).find(W + "body")
189
- styles = Styles(ET.fromstring(z.read("word/styles.xml")) if "word/styles.xml" in z.namelist() else None)
190
- blocks, comp = [], {k: 0 for k in KINDS}
191
- cover = memo = False
192
- seen_heading = False
193
- for el in _body_blocks(body):
194
- if el.tag == W + "tbl":
195
- tag = el.find(f"{W}tblPr/{W}tblCaption")
196
- kind = (tag.get(W + "val") if tag is not None else "") or ""
197
- word = kind.split(" ")[0]
198
- memo = memo or kind.startswith("cover memo")
199
- if word in comp:
200
- comp[word] += 1
201
- if word == "cover":
202
- cover = True
203
- rows = []
204
- for tr in el.findall(W + "tr"):
205
- cells = [norm(_text(tc)) for tc in tr.findall(W + "tc")]
206
- rows.append(next((c for c in cells if c), ""))
207
- paras = [norm(_text(p)) for p in el.iter(W + "p")]
208
- blocks.append({"t": "tbl", "rows": rows, "component": word if word in comp else None, "cells": [t for t in paras if t]})
209
- continue
210
- ppr = el.find(W + "pPr")
211
- sid_el = ppr.find(W + "pStyle") if ppr is not None else None
212
- sid = sid_el.get(W + "val") if sid_el is not None else None
213
- level = styles.level(sid)
214
- names = styles.names(sid)
215
- text = _text(el)
216
- if "pullquote" in names:
217
- comp["pullquote"] += 1
218
- if el.find(f".//{PIC}") is not None:
219
- blocks.append({"t": "img", "text": norm(text)})
220
- elif level and text.strip():
221
- blocks.append({"t": "h", "level": level, "text": norm(text), "raw": text.strip()})
222
- seen_heading = True
223
- elif text.strip():
224
- listed = (ppr is not None and ppr.find(W + "numPr") is not None) or "list" in names
225
- blocks.append({"t": "cap" if "caption" in names else "p", "text": norm(text), "list": listed})
226
- if not seen_heading and ppr is not None and ppr.find(W + "sectPr") is not None and blocks:
227
- cover = True # the first section ends before any heading: a cover page
228
- if ppr is not None and ppr.find(W + "sectPr") is not None:
229
- _columns(blocks, ppr.find(W + "sectPr"))
230
- _columns(blocks, body.find(W + "sectPr"))
231
- sections = list(body.iter(W + "sectPr"))
232
- # Column sections, plus the side-by-side rows the converter draws for columns with a column break.
233
- comp["columns"] += sum(1 for s in sections for c in s.findall(W + "cols") if int(c.get(W + "num", "1")) >= 2)
234
- comp["cover"] = max(comp["cover"], int(cover))
235
- main = body.find(W + "sectPr")
236
- if main is None and sections:
237
- main = sections[-1]
238
- frame = None
239
- if main is not None:
240
- size, margin = main.find(W + "pgSz"), main.find(W + "pgMar")
241
- pt = lambda el, key: abs(int(el.get(W + key, "0"))) / 20.0 # noqa: E731 (twips)
242
- frame = {"page_h": pt(size, "h"), "top": pt(margin, "top"), "bottom": pt(margin, "bottom")}
243
- return {"blocks": blocks, "components": comp, "cover": cover, "memo": memo, "frame": frame}
244
-
245
-
246
- # ── Restraint checks (spec Amendments 4, A4.11) ────────────────────────────
247
-
248
- def _rgb(hexs: str):
249
- try:
250
- return tuple(int(hexs[i:i + 2], 16) for i in (0, 2, 4))
251
- except (ValueError, TypeError):
252
- return None
253
-
254
-
255
- def hue(hexs: str):
256
- """None for ink (black, greys, white, auto) and for a near-white tint; else a hue bucket of 30 degrees."""
257
- rgb = _rgb((hexs or "").lstrip("#"))
258
- if rgb is None:
259
- return None
260
- hi, lo = max(rgb), min(rgb)
261
- if hi - lo < 32 or lo >= 236: # a neutral grey, or a tint too pale to read as a colour
262
- return None
263
- r, g, b = (c / 255 for c in rgb)
264
- mx, mn = max(r, g, b), min(r, g, b)
265
- d = mx - mn
266
- h = ((g - b) / d) % 6 if mx == r else (b - r) / d + 2 if mx == g else (r - g) / d + 4
267
- return int(round(h * 60 / 30)) % 12
268
-
269
-
270
- def lightness(hexs: str) -> float:
271
- rgb = _rgb((hexs or "").lstrip("#"))
272
- return 1.0 if rgb is None else (max(rgb) + min(rgb)) / 510
273
-
274
-
275
- INK_FILLS = {"", "AUTO", "FFFFFF"}
276
- ISO_DATE = re.compile(r"(?<!\d)(?:19|20)\d{2}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])(?!\d)")
277
- HANGUL = re.compile(r"[가-힣]")
278
-
279
-
280
- def _style_props(root):
281
- """styleId -> (heading level or 0, own colour, own size in pt, basedOn, is a pull-quote style)."""
282
- out = {}
283
- for st in root.findall(W + "style") if root is not None else []:
284
- sid = st.get(W + "styleId")
285
- name = (st.find(W + "name").get(W + "val") if st.find(W + "name") is not None else "") or ""
286
- m = re.match(r"(?i)^heading\s*(\d)$", name) or re.match(r"^Heading(\d)$", sid or "")
287
- colour = st.find(f"{W}rPr/{W}color")
288
- size = st.find(f"{W}rPr/{W}sz")
289
- based = st.find(W + "basedOn")
290
- out[sid] = (int(m.group(1)) if m else 0, colour.get(W + "val") if colour is not None else None,
291
- int(size.get(W + "val")) / 2 if size is not None else None, based.get(W + "val") if based is not None else None,
292
- "pullquote" in name.lower())
293
- return out
294
-
295
-
296
- def _resolve(props, sid, index):
297
- seen = set()
298
- while sid and sid in props and sid not in seen:
299
- seen.add(sid)
300
- if props[sid][index] is not None:
301
- return props[sid][index]
302
- sid = props[sid][3]
303
- return None
304
-
305
-
306
- def restraint(path: Path, tonality: bool) -> list[dict]:
307
- """The A4.11 checks read from the Word XML (everything but cover.block and tonality.structure)."""
308
- sev = "FAIL" if tonality else "ADVISORY"
309
- found = []
310
- with zipfile.ZipFile(path) as z:
311
- names = z.namelist()
312
- doc = ET.fromstring(z.read("word/document.xml"))
313
- sroot = ET.fromstring(z.read("word/styles.xml")) if "word/styles.xml" in names else None
314
- heads = {n: ET.fromstring(z.read(n)) for n in names if re.match(r"word/header\d*\.xml$", n)}
315
- foots = {n: ET.fromstring(z.read(n)) for n in names if re.match(r"word/footer\d*\.xml$", n)}
316
- props = _style_props(sroot)
317
- default_id = next((s.get(W + "styleId") for s in (sroot.findall(W + "style") if sroot is not None else [])
318
- if s.get(W + "type") == "paragraph" and s.get(W + "default") in ("1", "true")), "Normal")
319
- body = doc.find(W + "body")
320
- uses = {} # hue bucket -> set of element kinds
321
-
322
- def use(colour, kind):
323
- h = hue(colour)
324
- if h is not None:
325
- uses.setdefault(h, set()).add(kind)
326
-
327
- used = {el.get(W + "val") for el in doc.iter(W + "pStyle")} | {el.get(W + "val") for el in doc.iter(W + "rStyle")} | {default_id}
328
- for sid in list(used):
329
- s, seen = sid, set()
330
- while s in props and s not in seen: # a used style's colour may come from the style it is based on
331
- seen.add(s)
332
- if props[s][1]:
333
- use(props[s][1], "heading text" if sid in props and props[sid][0] else "text")
334
- break
335
- s = props[s][3]
336
- # heading.ink and heading.ratio
337
- body_pt = _resolve(props, default_id, 2) or 11.0
338
- h1_pt = 0.0
339
- coloured, shaded = [], []
340
- for p in body.iter(W + "p"):
341
- sid_el = p.find(f"{W}pPr/{W}pStyle")
342
- sid = sid_el.get(W + "val") if sid_el is not None else default_id
343
- level = 0
344
- s, seen = sid, set()
345
- while s in props and s not in seen:
346
- seen.add(s)
347
- if props[s][0]:
348
- level = props[s][0]
349
- break
350
- s = props[s][3]
351
- if not level:
352
- continue
353
- text = "".join(t.text or "" for t in p.iter(W + "t")).strip()
354
- if not text:
355
- continue
356
- colours = [c.get(W + "val") for c in p.iter(W + "color")] + [_resolve(props, sid, 1)]
357
- bad = [c for c in colours if hue(c) is not None]
358
- if bad:
359
- coloured.append(f"h{level} '{text[:30]}' #{bad[0]}")
360
- if level == 1:
361
- sizes = [int(s.get(W + "val")) / 2 for s in p.iter(W + "sz")] + [_resolve(props, sid, 2) or 0]
362
- h1_pt = max(h1_pt, max(sizes))
363
- if coloured:
364
- found.append(finding("heading.ink", sev, None, f"{len(coloured)} heading(s) in colour, e.g. {coloured[0]}",
365
- "Set every heading in the body ink; separate levels by weight and space, never by colour."))
366
- if h1_pt and h1_pt / body_pt > 1.5:
367
- found.append(finding("heading.ratio", sev, None, f"h1 {h1_pt:g} pt over body {body_pt:g} pt is {h1_pt / body_pt:.2f}x (at most 1.5)",
368
- "Keep the steps quiet: h1 about 1.4x, h2 about 1.2x, h3 the body size in bold."))
369
- # colours in the body: runs, rules, fills; tables apart from figures
370
- comp_count = {}
371
- for tbl in body.iter(W + "tbl"):
372
- cap = tbl.find(f"{W}tblPr/{W}tblCaption")
373
- kind = ((cap.get(W + "val") if cap is not None else "") or "").split(" ")[0]
374
- if kind:
375
- comp_count[kind] = comp_count.get(kind, 0) + 1
376
- for b in tbl.iter():
377
- if b.tag in (W + "top", W + "bottom", W + "left", W + "right", W + "insideH", W + "insideV") and b.get(W + "val") not in (None, "nil", "none"):
378
- use(b.get(W + "color"), "box rule" if kind else "table rule")
379
- for tc in tbl.iter(W + "tc"):
380
- shd = tc.find(f"{W}tcPr/{W}shd")
381
- fill = (shd.get(W + "fill") if shd is not None else "") or ""
382
- if fill.upper() in INK_FILLS:
383
- continue
384
- use(fill, "box fill" if kind else "table fill")
385
- if not kind:
386
- shaded.append(f"a data-table cell #{fill}")
387
- break
388
- if kind in ("callout", "sidebar", "keyfigures") and lightness(fill) < 0.95:
389
- shaded.append(f"a {kind} tint #{fill} darker than L 95 %")
390
- break
391
- if shaded:
392
- found.append(finding("table.fill", sev, None, f"{len(shaded)} shaded table(s), e.g. {shaded[0]}",
393
- "Booktabs only: three rules, no fills, no zebra, a bold ink header; at most one very light tint (L 95 % or lighter) for one component kind."))
394
- for p in body.iter(W + "p"):
395
- for b in p.iter(W + "pBdr"):
396
- for side in b:
397
- if side.get(W + "val") not in (None, "nil", "none"):
398
- use(side.get(W + "color"), "rule")
399
- shd = p.find(f"{W}pPr/{W}shd")
400
- if shd is not None:
401
- use(shd.get(W + "fill"), "paragraph fill")
402
- for r in p.iter(W + "r"):
403
- c = r.find(f"{W}rPr/{W}color")
404
- if c is not None:
405
- use(c.get(W + "val"), "text")
406
- rs = r.find(f"{W}rPr/{W}shd")
407
- if rs is not None:
408
- use(rs.get(W + "fill"), "text fill")
409
- for part in list(heads.values()) + list(foots.values()):
410
- for el in part.iter():
411
- if el.tag == W + "color":
412
- use(el.get(W + "val"), "page furniture")
413
- elif el.tag == W + "shd":
414
- use(el.get(W + "fill"), "page furniture")
415
- if len(uses) > 1:
416
- found.append(finding("color.accent-kinds", sev, None, f"{len(uses)} hues outside the ink: {sorted({k for v in uses.values() for k in v})}",
417
- "One accent colour per document at most; everything else is ink and grey."))
418
- else:
419
- for h, kinds in uses.items():
420
- if len(kinds) > 2:
421
- found.append(finding("color.accent-kinds", sev, None, f"the accent marks {len(kinds)} element kinds: {sorted(kinds)}",
422
- "Use the accent on two element kinds at most (for example the cover rule and the callout hairline)."))
423
- # component.budget
424
- kinds = {k for k in ("callout", "sidebar", "keyfigures", "columns") if comp_count.get(k)}
425
- pull = sum(1 for p in body.iter(W + "p")
426
- if (lambda s: s is not None and _resolve(props, s.get(W + "val"), 4))(p.find(f"{W}pPr/{W}pStyle")))
427
- if any(int(c.get(W + "num", "1")) >= 2 for s in body.iter(W + "sectPr") for c in s.findall(W + "cols")):
428
- kinds.add("columns")
429
- if pull:
430
- kinds.add("pullquote")
431
- cover_kf = False
432
- for el in body:
433
- if el.tag == W + "tbl":
434
- cap = el.find(f"{W}tblPr/{W}tblCaption")
435
- if cap is not None and cap.get(W + "val") == "keyfigures":
436
- cover_kf = True
437
- if el.tag == W + "p" and el.find(f"{W}pPr/{W}sectPr") is not None:
438
- break
439
- if el.tag == W + "p" and el.find(f"{W}pPr/{W}pStyle") is not None and props.get(el.find(f"{W}pPr/{W}pStyle").get(W + "val"), (0,))[0]:
440
- cover_kf = False # a heading before the first section break: page 1 is not a cover
441
- break
442
- else:
443
- cover_kf = False
444
- problems = []
445
- if len(kinds) > 3:
446
- problems.append(f"{len(kinds)} component kinds ({', '.join(sorted(kinds))})")
447
- if comp_count.get("keyfigures", 0) > 1:
448
- problems.append(f"{comp_count['keyfigures']} key-figure strips")
449
- if pull:
450
- problems.append(f"{pull} pull quote(s)")
451
- if cover_kf:
452
- problems.append("key figures on the cover")
453
- if problems:
454
- found.append(finding("component.budget", sev, None, "; ".join(problems),
455
- "Three component kinds at most; one key-figure strip, in the summary; no pull quotes; a cover holds no key figures."))
456
- # date.iso (every path) and furniture.chip
457
- text = " ".join(t.text or "" for part in [doc, *heads.values(), *foots.values()] for t in part.iter(W + "t"))
458
- if len(HANGUL.findall(text)) > 0.05 * max(1, len(re.sub(r"\s", "", text))):
459
- m = ISO_DATE.search(text)
460
- if m:
461
- found.append(finding("date.iso", "FAIL", None, f"an ISO date {m.group(0)} in a Korean document",
462
- "Write Korean dates as 2026. 10. 1. or 2026년 10월 1일."))
463
- for name, part in heads.items():
464
- chip = [el for el in part.iter() if (el.tag == W + "shd" and (el.get(W + "fill") or "").upper() not in INK_FILLS)
465
- or (el.tag == W + "color" and hue(el.get(W + "val")) is not None)]
466
- if chip and "".join(t.text or "" for t in part.iter(W + "t")).strip():
467
- found.append(finding("furniture.chip", sev, None, f"{name.split('/')[-1]} holds a coloured or shaded notice",
468
- "State the sample-data notice once, on the cover or the first page, in ink; page headers stay quiet."))
469
- break
470
- return found
471
-
472
-
473
- # ── tonality.structure ──────────────────────────────────────────────────────
474
-
475
- STRUCTURE_KEYS = ("title_block", "summary", "numbering", "components", "running_head", "contents")
476
-
477
-
478
- def structure(path: Path) -> dict:
479
- """The structural features of a document (A4.6): what stands on page 1, how the summary is set, how headings
480
- are numbered, which components it uses, what the running head carries and whether it lists its contents."""
481
- info = read_docx(path)
482
- with zipfile.ZipFile(path) as z:
483
- names = z.namelist()
484
- heads = [ET.fromstring(z.read(n)) for n in names if re.match(r"word/header\d*\.xml$", n)]
485
- foots = [ET.fromstring(z.read(n)) for n in names if re.match(r"word/footer\d*\.xml$", n)]
486
- body = ET.fromstring(z.read("word/document.xml")).find(W + "body")
487
- caps = [((t.find(f"{W}tblPr/{W}tblCaption").get(W + "val") if t.find(f"{W}tblPr/{W}tblCaption") is not None else "") or "")
488
- for t in body.iter(W + "tbl")]
489
- # A cover page: the first section ends before any heading and the next section starts on a new page
490
- # (a section's w:type says how that section starts).
491
- cover_page = False
492
- sects = [el.find(f"{W}pPr/{W}sectPr") for el in body if el.tag == W + "p" and el.find(f"{W}pPr/{W}sectPr") is not None]
493
- sects.append(body.find(W + "sectPr"))
494
- for el in body:
495
- ppr = el.find(W + "pPr") if el.tag == W + "p" else None
496
- if ppr is not None and ppr.find(W + "pStyle") is not None and re.match(r"Heading\d", ppr.find(W + "pStyle").get(W + "val") or ""):
497
- break
498
- if ppr is not None and ppr.find(W + "sectPr") is not None:
499
- nxt = sects[1] if len(sects) > 1 else None
500
- kind = nxt.find(W + "type") if nxt is not None else None
501
- cover_page = kind is None or kind.get(W + "val") != "continuous"
502
- break
503
- if cover_page:
504
- title = "cover page"
505
- elif any(c.startswith("cover memo") for c in caps):
506
- title = "memo block"
507
- elif any(c.startswith("cover") for c in caps):
508
- title = "title block + " + next(c for c in caps if c.startswith("cover")).split(" ", 1)[-1]
509
- else:
510
- title = "title block"
511
- blocks = info["blocks"]
512
- first_h = next((i for i, b in enumerate(blocks) if b["t"] == "h"), None)
513
- lead = blocks[first_h + 1:first_h + 6] if first_h is not None else []
514
- if any(b["t"] == "p" and re.match(r"^[①②③④⑤]", b["text"]) for b in lead):
515
- summary = "numbered points"
516
- elif any(b["t"] == "tbl" and b["component"] == "keyfigures" for b in blocks[: (first_h or 0) + 8]):
517
- summary = "key figures"
518
- else:
519
- summary = "prose"
520
- heads_text = [b["text"] for b in blocks if b["t"] == "h"]
521
- if heads_text and sum(bool(re.match(r"^[ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ]\.", h)) for h in heads_text) >= 2:
522
- numbering = "roman"
523
- elif heads_text and sum(bool(re.match(r"^\d+(\.\d+)*\.?", h)) for h in heads_text) >= 2:
524
- numbering = "decimal"
525
- else:
526
- numbering = "none"
527
- comps = sorted(k for k, v in info["components"].items() if v and k != "cover")
528
-
529
- def furniture(parts):
530
- out = set()
531
- for part in parts:
532
- xml = ET.tostring(part, encoding="unicode")
533
- text = "".join(t.text or "" for t in part.iter(W + "t")).strip()
534
- if "PAGE" not in xml and "STYLEREF" not in xml:
535
- continue # a cover's own footer (byline, date) is not a running head
536
- if "STYLEREF" in xml:
537
- out.add("section")
538
- if "PAGE" in xml:
539
- out.add("folio")
540
- if re.sub(r"\d", "", text):
541
- out.add("title")
542
- return out
543
- running = f"header:{'+'.join(sorted(furniture(heads))) or '-'} footer:{'+'.join(sorted(furniture(foots))) or '-'}"
544
- contents = any(b["t"] == "p" and b["text"] in ("목차", "Contents") for b in blocks)
545
- return {"title_block": title, "summary": summary, "numbering": numbering, "components": ",".join(comps) or "-",
546
- "running_head": running, "contents": contents}
547
-
548
-
549
- def structure_diff(a: dict, b: dict) -> list[str]:
550
- return [k for k in STRUCTURE_KEYS if a.get(k) != b.get(k)]
551
-
552
-
553
- # ── Structural checks ───────────────────────────────────────────────────────
554
-
555
- def structural(info: dict, front: dict, manuscript: bool, tonality: bool = True) -> list[dict]:
556
- found = []
557
- heads = [b for b in info["blocks"] if b["t"] == "h"]
558
- if heads and heads[0]["level"] > 2:
559
- found.append(finding("heading.order", "FAIL", None, f"the first heading is h{heads[0]['level']}: {heads[0]['raw'][:60]}",
560
- "Open the document with a # or ## heading."))
561
- for prev, head in zip(heads, heads[1:]):
562
- if head["level"] > prev["level"] + 1:
563
- found.append(finding("heading.order", "FAIL", None, f"h{prev['level']} -> h{head['level']}: {head['raw'][:60]}",
564
- f"Make it an h{prev['level'] + 1}, or add the missing level above it."))
565
- # The example-data note reads as a label and its line, never two halves around a spaced dash (Amendments 6).
566
- notice = str(front.get("notice") or "")
567
- if re.search(r"\s[—–]\s", notice):
568
- found.append(finding("notice.dash", "FAIL" if tonality else "ADVISORY", None, f"the notice joins its parts with a spaced dash: {notice[:60]}",
569
- "Write the label with a colon (예시 데이터: …; Sample memo: …)."))
570
- labels = [("title", front.get("title")), ("subtitle", front.get("subtitle"))] + [(f"h{h['level']}", h["raw"]) for h in heads]
571
- for what, text in labels:
572
- if text and declarative(str(text)):
573
- found.append(finding("heading.declarative", "ADVISORY" if manuscript else "FAIL", None, f"the {what} is a sentence: {str(text)[:60]}",
574
- "Name the topic as a noun phrase (1년 운영 결과; Conversion by feed rate) and put the claim in the first sentence under it."))
575
- return found
576
-
577
-
578
- # ── Page checks ─────────────────────────────────────────────────────────────
579
-
580
- def read_pdf(pdf: Path) -> list[dict]:
581
- """Per page: size, text lines (top, bottom, normalised text) and ink boxes (text, drawings, pictures)."""
582
- import pymupdf
583
-
584
- pages = []
585
- with pymupdf.open(pdf) as document:
586
- for page in document:
587
- lines, ink, boxes = [], [], []
588
- for block in page.get_text("dict")["blocks"]:
589
- for line in block.get("lines", []):
590
- text = "".join(span["text"] for span in line["spans"])
591
- if text.strip():
592
- x0, y0, x1, y1 = line["bbox"]
593
- lines.append((y0, y1, norm(text)))
594
- boxes.append((x0, y0, x1, y1, norm(text)))
595
- ink.append((y0, y1))
596
- fills = 0.0
597
- for drawing in page.get_drawings():
598
- fill = drawing.get("fill")
599
- if drawing.get("color") is not None or (fill is not None and min(fill) < 0.96):
600
- ink.append((drawing["rect"].y0, drawing["rect"].y1))
601
- if fill is not None and min(fill) < 0.96:
602
- fills += drawing["rect"].width * drawing["rect"].height
603
- images = [(info["bbox"][1], info["bbox"][3]) for info in page.get_image_info()]
604
- ink.extend(images)
605
- lines.sort()
606
- pages.append({"h": page.rect.height, "w": page.rect.width, "lines": lines, "ink": ink, "images": len(images), "boxes": boxes,
607
- "filled": fills / (page.rect.width * page.rect.height)})
608
- return pages
609
-
610
-
611
- def _column(hit, pages) -> int:
612
- """0 for a line in the left half of its page, 1 for the right half (a two-column body)."""
613
- page = pages[hit[0] - 1]
614
- box = next((b for b in page.get("boxes", []) if abs(b[1] - hit[1]) < 0.5 and b[4] == hit[3]), None)
615
- return 0 if box is None or box[0] < 297 else 1
616
-
617
-
618
- def _starts(line: str, target: str) -> bool:
619
- """The PDF line opens the target: six shared characters, or all of a short target, or a short wrapped first line."""
620
- if not line or not target:
621
- return False
622
- k = 0
623
- for a, b in zip(line, target):
624
- if a != b:
625
- break
626
- k += 1
627
- return k >= min(len(target), 6) or k == len(line) >= min(2, len(target))
628
-
629
-
630
- def _wraps(raw: str, lines: list) -> list[str]:
631
- """Where a label set over several PDF lines breaks inside a word: the text either side of each such break.
632
- A break may fall at a space or after a dash or slash; anywhere else it splits a word (제/안서)."""
633
- target = norm(raw)
634
- spaced = re.sub(r"\s+", " ", raw.translate(str.maketrans({"–": "-", "—": "-"}))).strip()
635
- ok_after, k = set(), 0 # positions in the normalised text where a break is allowed
636
- marker = re.match(r"^(?:\d+(?:\.\d+)*\.?|[A-Z]\.|[IVX]+\.|[ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ]\.|[가나다라마바사아자차카타파하]\.|[□○■▪•-])", target)
637
- if marker:
638
- ok_after.add(marker.end()) # a numeral or marker the treatment sets apart with a tab
639
- for i, ch in enumerate(spaced):
640
- if ch == " ":
641
- ok_after.add(k)
642
- continue
643
- k += 1
644
- if ch in "-/":
645
- ok_after.add(k)
646
- cut = _set_over(target, lines)
647
- return [f"{target[max(0, c - 4):c]}/{target[c:c + 4]}" for c in cut or [] if c not in ok_after]
648
-
649
-
650
- def _set_over(target: str, lines: list) -> list[int] | None:
651
- """The break positions of a normalised label set over consecutive PDF lines ([] on one line), or None."""
652
- for start in range(len(lines)):
653
- if lines[start][2] == target:
654
- return []
655
- if not lines[start][2] or not target.startswith(lines[start][2]):
656
- continue
657
- got, cut = lines[start][2], []
658
- for nxt in lines[start + 1:start + 8]:
659
- if not target.startswith(got + nxt[2]):
660
- break
661
- cut.append(len(got))
662
- got += nxt[2]
663
- if got == target:
664
- return cut
665
- return None
666
-
667
-
668
- def _same(line: str, target: str) -> bool:
669
- """A stricter _starts for captions and box cells: 12 shared characters (or the whole text), so a sentence
670
- that only opens alike ("Table 2 summarises", "Half-conversion time.") is not taken for them."""
671
- if not line or not target:
672
- return False
673
- k = next((i for i, (a, b) in enumerate(zip(line, target)) if a != b), min(len(line), len(target)))
674
- return k >= min(len(target), 12) or (k == len(line) >= 8)
675
-
676
-
677
- LONG_TABLE_ROWS = 7 # header + 6 body rows (spec Amendments 3)
678
- SPLIT_SIDE_MIN = 3 # body rows on each side of an allowed split
679
- SPLIT_START_MAX = 0.75 # moving the table whole would leave its first page under this fill
680
-
681
-
682
- def long_split_ok(block, got, cap_hit, pages, frame, tonality) -> bool:
683
- """Spec Amendments 3: in a tonality run, a table of a header and six or more body rows may break between rows
684
- (header repeated) when it started high enough that moving it whole would leave the page under 0.75 filled,
685
- with at least three body rows on each side. Never on the publisher path."""
686
- spread = sorted({h[0] for h in got})
687
- if not tonality or len(block["rows"]) < LONG_TABLE_ROWS or len(spread) != 2:
688
- return False
689
- first = sum(1 for h in got if h[0] == spread[0]) - 1 # the header row stands on the first page
690
- second = sum(1 for h in got if h[0] == spread[1])
691
- page = pages[spread[0] - 1]
692
- top, floor = frame["top"], page["h"] - frame["bottom"]
693
- start = cap_hit[1] if cap_hit and cap_hit[0] == spread[0] else min(h[1] for h in got if h[0] == spread[0])
694
- return first >= SPLIT_SIDE_MIN and second >= SPLIT_SIDE_MIN and (start - top) / (floor - top) <= SPLIT_START_MAX
695
-
696
-
697
- BALANCE_SHORT = 0.75 # a column that stops above this share of the frame beside one that runs to the foot
698
- BALANCE_FULL = 0.9
699
-
700
-
701
- def column_balance(info: dict, pages: list[dict], frame: dict, tonality: bool) -> list[dict]:
702
- """Columns of a two-column body (docx-spec Amendments 7): on a full page neither column stops a quarter of the
703
- frame short while the other runs to the foot, and the last page sets both columns to about the same depth
704
- instead of one column beside an empty one."""
705
- if not any(b.get("cols", 1) >= 2 for b in info["blocks"]):
706
- return []
707
- found = []
708
- top = frame["top"]
709
- for i, page in enumerate(pages, 1):
710
- floor, mid = page["h"] - frame["bottom"], page.get("w", 595.3) / 2
711
- body = [b for b in page.get("boxes", []) if b[1] >= top - 2 and b[3] <= floor + 2]
712
- left = [b for b in body if b[2] <= mid + 5]
713
- right = [b for b in body if b[0] >= mid - 5]
714
- depth = lambda side: (max(b[3] for b in side) - top) / (floor - top) if side else 0.0 # noqa: E731
715
- if i < len(pages):
716
- if left and right and max(depth(left), depth(right)) >= BALANCE_FULL and min(depth(left), depth(right)) < BALANCE_SHORT:
717
- short = "left" if depth(left) < depth(right) else "right"
718
- found.append(finding("columns.balance", "FAIL" if tonality else "ADVISORY", i,
719
- f"the {short} column on page {i} stops at {min(depth(left), depth(right)):.2f} of the frame while the other runs to the foot",
720
- "Let a list of five or six items in a column break after its first two items; keep only short blocks whole."))
721
- elif info["blocks"] and info["blocks"][-1].get("cols", 1) >= 2:
722
- start = min((b[1] for b in left + right), default=top)
723
- tall = lambda side: (max(b[3] for b in side) - start) / (floor - top) if side else 0.0 # noqa: E731
724
- longer, shorter = max(tall(left), tall(right)), min(tall(left), tall(right))
725
- if longer > 0.125 and shorter < 0.5 * longer:
726
- found.append(finding("columns.balance", "FAIL" if tonality else "ADVISORY", i,
727
- f"the last page sets one column {longer:.2f} of the frame deep beside one {shorter:.2f} deep",
728
- "End the column body with a continuous section break so the last page balances its columns."))
729
- return found
730
-
731
-
732
- def paged(info: dict, pages: list[dict], tonality: bool, front: dict | None = None) -> tuple[list[dict], dict]:
733
- frame = info["frame"] or {"page_h": 841.9, "top": 56.7, "bottom": 56.7}
734
- top = frame["top"]
735
- found, fills = [], []
736
- n = len(pages)
737
- for i, page in enumerate(pages, 1):
738
- floor = page["h"] - frame["bottom"]
739
- body = [(y0, y1) for y0, y1 in page["ink"] if y1 > top - 2 and y0 < floor + 2]
740
- fill = round(max(0.0, min(1.0, (max((y1 for _, y1 in body), default=top) - top) / (floor - top))), 3)
741
- exempt = "last" if i == n else "cover" if info["cover"] and i == 1 else None
742
- fills.append({"page": i, "fill": fill, "exempt": exempt})
743
- if not exempt and fill < FILL_MIN:
744
- found.append(finding("fill.page", "FAIL", i, f"page {i} is filled to {fill:.2f} of its frame (floor {FILL_MIN})",
745
- "Let the next block move up: drop a forced break, keep a short section with its neighbour, or move a table under its text."))
746
- # A memo that spills less than a quarter of a page onto page 2 is a one-page memo set loosely (spec-v2
747
- # Amendments 7); more than that is a two-page memo, which the pack allows.
748
- if info.get("memo") and n == 2 and fills[-1]["fill"] < MEMO_SPILL:
749
- found.append(finding("memo.fit", "FAIL", 2, f"the memo runs onto a second page filled to {fills[-1]['fill']:.2f} of its frame",
750
- "Set the memo on one page: the Memo pack's tight spacing, or shorten the text by the lines that spill."))
751
- # A second page filled under a third of its frame is a one-page document set loosely or a block left over;
752
- # a last page under an eighth holds a paragraph or two that the page before could carry (Amendments 6).
753
- if not info.get("memo") and n >= 2:
754
- last = fills[-1]["fill"]
755
- if n == 2 and last < SPILL_SECOND:
756
- found.append(finding("page.spill", "FAIL" if tonality else "ADVISORY", 2, f"page 2 of 2 is filled to {last:.2f} of its frame (at least {SPILL_SECOND:.2f})",
757
- "Set the document on one page (tight spacing for a source of about a page), or give page 2 a whole section."))
758
- elif last < SPILL_LAST:
759
- found.append(finding("page.spill", "FAIL" if tonality else "ADVISORY", n, f"the last page holds only {last:.2f} of its frame",
760
- "Keep the closing paragraph with the block before it, so the two share a page."))
761
- heads = [b for b in info["blocks"] if b["t"] == "h"]
762
- labels = [(what, str((front or {}).get(what))) for what in ("title", "subtitle") if (front or {}).get(what)]
763
- labels += [(f"h{h['level']}", h["raw"]) for h in heads]
764
- for what, raw in labels:
765
- for i, page in enumerate(pages, 1):
766
- splits = _wraps(raw, page["lines"])
767
- if splits:
768
- found.append(finding("heading.wrap", "FAIL", i, f"the {what} '{raw[:50]}' wraps inside a word on page {i} ({', '.join(splits)})",
769
- "Break the line between words: the converter sets cover and title lines at word boundaries; a heading too long for its column needs a shorter label."))
770
- break
771
- title = str((front or {}).get("title") or "")
772
- for i, page in enumerate(pages[:2], 1):
773
- cut = _set_over(norm(title), page["lines"]) if title else None
774
- if cut is not None and len(cut) + 1 > TITLE_LINES:
775
- found.append(finding("title.lines", "FAIL", i, f"the title takes {len(cut) + 1} lines (at most {TITLE_LINES})",
776
- "The converter sets a title in at most three lines; a longer title needs a shorter wording or a subtitle."))
777
- break
778
- body_pages = n - (1 if info["cover"] else 0)
779
- for i, page in enumerate(pages, 1):
780
- floor = page["h"] - frame["bottom"]
781
- for _, y0, _, t in [(None, ln[0], ln[1], ln[2]) for ln in page["lines"] if ln[0] > floor - 2]:
782
- m = re.fullmatch(r"(\d+)/(\d+)", t)
783
- if m and int(m.group(2)) not in (n, body_pages):
784
- found.append(finding("folio.total", "FAIL", i, f"the folio reads {m.group(1)} / {m.group(2)} in a document of {n} pages",
785
- "Print the page number alone, or a total that counts the pages the reader has."))
786
- break
787
- else:
788
- continue
789
- break
790
- for i, page in enumerate(pages[:-1], 1):
791
- floor = page["h"] - frame["bottom"]
792
- inside = [ln for ln in page["lines"] if ln[0] >= top - 2 and ln[1] <= floor + 2]
793
- if not inside:
794
- continue
795
- last = max(inside, key=lambda ln: ln[1])[2]
796
- for head in heads:
797
- h = head["text"]
798
- if last == h or (len(last) >= 4 and h.endswith(last)) or (last.endswith(h) and len(last) - len(h) <= 6 and len(h) >= 2):
799
- found.append(finding("heading.stranded", "FAIL", i, f"page {i} ends on the heading '{head['raw'][:50]}'",
800
- "The converter keeps a heading with its next paragraph; a heading over a long table or a picture needs a short lead sentence under it."))
801
- break
802
- lines = [(p, y0, y1, t) for p, page in enumerate(pages, 1) for y0, y1, t in page["lines"]]
803
- cursor = 0
804
-
805
- def find(target, max_page=None):
806
- nonlocal cursor
807
- for j in range(cursor, len(lines)):
808
- if max_page and lines[j][0] > max_page:
809
- return None
810
- if _starts(lines[j][3], target):
811
- cursor = j + 1
812
- return lines[j]
813
- return None
814
-
815
- body_h = frame["page_h"] - frame["top"] - frame["bottom"]
816
- image_pages = [p for p, page in enumerate(pages, 1) for _ in range(page["images"])]
817
- pictures = 0
818
- pending = None
819
- for block in info["blocks"]:
820
- if block["t"] == "h":
821
- find(block["text"])
822
- elif block["t"] == "tbl" and block["component"] in ("keyfigures", "callout", "sidebar"):
823
- # A component box is short by design; reading order inside it runs across cells, so each
824
- # paragraph is looked up from here without moving the cursor past the next block.
825
- hits = []
826
- for text in block.get("cells", []):
827
- if len(text) < 2:
828
- continue
829
- hit = next((ln for ln in lines[cursor:] if _same(ln[3], text) and (not hits or ln[0] <= hits[0][0] + 1)), None)
830
- if hit:
831
- hits.append(hit)
832
- spread = sorted({h[0] for h in hits})
833
- if len(spread) > 1:
834
- found.append(finding("table.split", "FAIL", spread[0], f"a {block['component']} box runs over pages {spread}",
835
- "A component box stays whole: its rows cannot split and it keeps with the heading above it."))
836
- elif block["t"] == "tbl" and block["component"] is None:
837
- prev = info["blocks"][info["blocks"].index(block) - 1] if info["blocks"].index(block) else None
838
- cap_hit = None
839
- if prev is not None and prev["t"] in ("cap", "p") and TABLE_CAPTION.match(prev["text"]):
840
- cap_hit = next((ln for ln in lines[max(0, cursor - 3):] if _same(ln[3], prev["text"])), None)
841
- got = []
842
- for row in block["rows"]:
843
- hit = find(row, got[-1][0] + 1 if got else None) if row else None
844
- if hit:
845
- got.append(hit)
846
- spread = sorted({h[0] for h in got})
847
- if cap_hit:
848
- # The caption ends its page when no body line stands below it there.
849
- cp, cy1 = cap_hit[0], cap_hit[2]
850
- floor_y = pages[cp - 1]["h"] - frame["bottom"]
851
- if not any(ln[0] > cy1 + 1 and ln[1] <= floor_y and ln[2] not in prev["text"] for ln in pages[cp - 1]["lines"]): # a wrapped caption line is not body
852
- found.append(finding("table.split", "FAIL", cp, f"the caption '{prev['text'][:30]}' ends page {cp}; its table starts on the next page",
853
- "Keep the caption with its table (keep with next on the caption paragraph)."))
854
- height = sum(max(h[2] for h in got if h[0] == p) - min(h[1] for h in got if h[0] == p) for p in spread)
855
- if len(spread) > 1 and height <= FIT_SHARE * body_h and not long_split_ok(block, got, cap_hit, pages, frame, tonality):
856
- found.append(finding("table.split", "FAIL", spread[0], f"a table of {len(block['rows'])} rows (about {height:.0f} pt of a {body_h:.0f} pt frame) runs over pages {spread}",
857
- "Put a short lead sentence before it or move it under the next paragraph; never shrink its type to fit."))
858
- elif block["t"] == "img":
859
- pending = image_pages[pictures] if pictures < len(image_pages) else None
860
- pictures += 1
861
- elif block["t"] == "cap":
862
- hit = find(block["text"])
863
- if pending is not None and hit and hit[0] != pending:
864
- found.append(finding("figure.split", "FAIL", pending, f"a picture on page {pending} has its caption on page {hit[0]}",
865
- "Make the picture smaller in its source or give the section a lead sentence so both move together."))
866
- pending = None
867
- # Short lists and a heading with the table it opens (docx-spec Amendments 6), located by a cursor of their own.
868
- spots = []
869
- at, used = 0, set()
870
- for block in info["blocks"]:
871
- target = block["rows"][0] if block["t"] == "tbl" and block["rows"] and block["rows"][0] else block.get("text")
872
- hit = None
873
- if target and len(target) >= 2:
874
- # Lines on one baseline sort by height, so the head of the next column can stand a few lines back.
875
- for j in range(max(0, at - 4), len(lines)):
876
- if j not in used and _starts(lines[j][3], target):
877
- hit, at = lines[j], max(at, j + 1)
878
- used.add(j)
879
- break
880
- spots.append(hit)
881
- k = 0
882
- blocks = info["blocks"]
883
- while k < len(blocks):
884
- if blocks[k]["t"] == "p" and blocks[k].get("list"):
885
- j = k
886
- while j < len(blocks) and blocks[j]["t"] == "p" and blocks[j].get("list"):
887
- j += 1
888
- items = [spots[i] for i in range(k, j) if spots[i] is not None]
889
- where = sorted({(h[0], _column(h, pages)) for h in items})
890
- # In a column a list of five or six may break once, two items or more on each side (Amendments 7).
891
- column_break = blocks[k].get("cols", 1) >= 2 and len(where) == 2 and j - k >= 5 and \
892
- min(sum(1 for h in items if (h[0], _column(h, pages)) == w) for w in where) >= 2
893
- if 2 <= j - k <= SHORT_LIST and len(where) > 1 and not column_break:
894
- found.append(finding("list.split", "FAIL" if tonality else "ADVISORY", where[0][0], f"a list of {j - k} items runs over {len(where)} pages or columns",
895
- "A list of up to six items keeps together: every item but the last keeps with the next, and its lead-in keeps with the list."))
896
- k = j
897
- continue
898
- if blocks[k]["t"] == "h" and k + 2 < len(blocks) and blocks[k + 1]["t"] == "p" and not blocks[k + 1].get("list"):
899
- nxt = next((i for i in range(k + 2, min(k + 5, len(blocks))) if blocks[i]["t"] == "tbl" and blocks[i]["component"] is None), None)
900
- # A short lead (about two lines) over a table of up to eight body rows, the chain the converter keeps.
901
- short = len(blocks[k + 1]["text"]) <= 200 and nxt is not None and len(blocks[nxt]["rows"]) <= 9
902
- # A heading in between opens its own section, and the table is that heading's, not this one's.
903
- if short and all(blocks[i]["t"] == "cap" or (blocks[i]["t"] != "h" and len(blocks[i].get("text", "")) <= 40) for i in range(k + 2, nxt)):
904
- if spots[k] and spots[nxt] and spots[k][0] != spots[nxt][0]:
905
- found.append(finding("heading.apart", "FAIL" if tonality else "ADVISORY", spots[k][0],
906
- f"the heading '{blocks[k].get('raw', '')[:40]}' and its lead sentence end page {spots[k][0]}; the table they open starts page {spots[nxt][0]}",
907
- "Keep the heading, its lead sentence and the table together (keep with next), or move the sentence under the table."))
908
- k += 1
909
- # A heading in a column body stands with its first lines: never alone at the foot of a column while its text
910
- # opens the next column or page (docx-spec Amendments 7).
911
- for k, block in enumerate(blocks[:-1]):
912
- nxt = blocks[k + 1]
913
- if block["t"] != "h" or block.get("cols", 1) < 2 or nxt["t"] == "h" or not spots[k] or not spots[k + 1]:
914
- continue
915
- here, there = (spots[k][0], _column(spots[k], pages)), (spots[k + 1][0], _column(spots[k + 1], pages))
916
- if here != there:
917
- found.append(finding("heading.column", "FAIL" if tonality else "ADVISORY", here[0],
918
- f"the heading '{block.get('raw', '')[:40]}' ends a column on page {here[0]}; its text starts in the next column",
919
- "Keep the heading with its first lines; a source or note line under a page-wide table spans with the table."))
920
- found.extend(column_balance(info, pages, frame, tonality))
921
- # A floating sidebar that reaches past the next heading: the heading and its rule run beside the box.
922
- for k, block in enumerate(info["blocks"]):
923
- if block["t"] != "tbl" or block["component"] != "sidebar":
924
- continue
925
- nxt = next((b for b in info["blocks"][k + 1:] if b["t"] == "h"), None)
926
- if nxt is None:
927
- continue
928
- for i, page in enumerate(pages, 1):
929
- boxes = [b for b in page.get("boxes", []) if b[1] >= top - 2] # the running header is not body
930
- cells = [c for c in block.get("cells", []) if len(c) >= 2]
931
- anchor = next((b for b in boxes if cells and _same(b[4], cells[0])), None)
932
- # the box's own lines share its left edge; body lines that open alike stand elsewhere
933
- mine = []
934
- if anchor:
935
- # the box: its title line, then every line in its column that follows without a gap (wrapped
936
- # lines included, which do not open a cell paragraph)
937
- mine = [anchor]
938
- for bx in sorted((b for b in boxes if b[1] > anchor[1] and b[0] >= anchor[0] - 24), key=lambda b: b[1]):
939
- if bx[1] - mine[-1][3] > 20:
940
- break
941
- mine.append(bx)
942
- names = {nxt["text"], re.sub(r"^(?:\d+(?:\.\d+)*\.?|[□○■▪•-])", "", nxt["text"])} # the numeral may stand apart
943
- head = next((b for b in boxes if any(_same(b[4], t) for t in names if len(t) >= 2)), None)
944
- if mine and head:
945
- x0, y0, y1 = min(b[0] for b in mine), min(b[1] for b in mine), max(b[3] for b in mine)
946
- if head[1] < y1 and head[3] > y0 and head[0] < x0:
947
- found.append(finding("sidebar.overlap", "FAIL", i, f"the sidebar on page {i} runs beside the next heading '{nxt['raw'][:40]}'",
948
- "Give the sidebar more text beside it, or let it stand full width; the converter stops the float when the text before the next heading is shorter than the box."))
949
- break
950
- if tonality and info["cover"] and pages and pages[0].get("filled", 0) > 0.25:
951
- found.append(finding("cover.block", "FAIL", 1, f"filled shapes cover {pages[0]['filled']:.0%} of the cover page (at most 25 %)",
952
- "A typographic cover: left-aligned title, white space, one rule at most; no colour block, no tiles."))
953
- kinds = [k for k, v in info["components"].items() if v]
954
- if n >= 4 and len(kinds) < 2:
955
- found.append(finding("component.variety", "FAIL" if tonality else "ADVISORY", None,
956
- f"{n} pages use {len(kinds)} component kind(s): {', '.join(kinds) or 'none'}",
957
- "Give the document a cover and the components its tonality allows: a callout for the decision, key figures with their basis, a sidebar for definitions."))
958
- body_fills = [f["fill"] for f in fills if not f["exempt"]]
959
- return found, {"pages": n, "fills": fills, "fill_median": round(statistics.median(body_fills), 3) if body_fills else None}