@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,48 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from 'node:fs';
3
- import path from 'node:path';
4
- import { analyzeFile, root } from './diagram-metrics.mjs';
5
- import { buildBlockRegistry } from './block-registry.mjs';
6
- import { sequenceQuality } from './visual-quality.mjs';
7
-
8
- const args=process.argv.slice(2);
9
- const typeArg=args.find((x)=>x.startsWith('--type='));
10
- const type=typeArg?.slice('--type='.length);
11
- const file=args.find((x)=>!x.startsWith('--'));
12
- if(!type||!file){console.error('Usage: node scripts/verify-type.mjs --type=<catalog-id> <file.html|file.svg>');process.exit(2);}
13
- const catalog=JSON.parse(fs.readFileSync(path.join(root,'references/type-catalog.json'),'utf8'));
14
- const entry=catalog.entries.find((x)=>x.id===type);
15
- if(!entry){console.error('TYPE_UNKNOWN '+type);process.exit(2);}
16
- const source=fs.readFileSync(file,'utf8');
17
- const result=analyzeFile(file);
18
- const issues=[];
19
- if(!source.includes('data-type="'+type+'"')&&!source.includes('id="diagram-'+type+'-')) issues.push('TYPE_ID_MISMATCH');
20
- if(!fs.existsSync(path.join(root,'references',entry.reference))) issues.push('TYPE_GUIDE_MISSING');
21
- if(!/data-variant\s*=\s*["'](?:light|dark|full)["']/i.test(source)&&!/id="diagram-[a-z0-9-]+-(?:light|dark|full)"/i.test(source)) issues.push('VARIANT_MISSING');
22
- if(entry.family==='quantitative'&&result.textCount<3) issues.push('QUANTITATIVE_LABELS_MISSING');
23
- if(type==='heatmap'&&(source.match(/<rect\b/gi)||[]).length<16) issues.push('HEATMAP_GRID_TOO_SMALL');
24
- if(type==='treemap'&&(source.match(/<rect\b/gi)||[]).length<6) issues.push('TREEMAP_TILES_TOO_FEW');
25
- if(type==='sankey'&&!/<path\b[^>]*stroke-width\s*=\s*["'][1-9]/i.test(source)) issues.push('SANKEY_RIBBON_WIDTH_MISSING');
26
- if(type==='waterfall'&&(source.match(/<rect\b/gi)||[]).length<5) issues.push('WATERFALL_STEPS_TOO_FEW');
27
- if(type==='beeswarm'&&(source.match(/<circle\b/gi)||[]).length<20) issues.push('BEESWARM_MARKS_TOO_FEW');
28
- if(type==='bubble'&&(source.match(/<circle\b/gi)||[]).length<6) issues.push('BUBBLE_MARKS_TOO_FEW');
29
- if(type==='polar'&&!/<polygon\b/i.test(source)) issues.push('POLAR_SHAPE_MISSING');
30
- if(type==='radar'&&!/<polygon\b/i.test(source)) issues.push('RADAR_SHAPE_MISSING');
31
- if(type==='sequence'||type==='sequence-oauth')issues.push(...sequenceQuality(source).map((issue)=>'SEQUENCE '+issue));
32
- if(type==='tree-block-decomposition'){
33
- try{
34
- const svg=source.match(/<svg\b[^>]*>[\s\S]*?<\/svg>/i)?.[0]||'';
35
- const registry=buildBlockRegistry(svg,path.basename(file));
36
- const visible=[...svg.matchAll(/<text\b[^>]*>([\s\S]*?)<\/text>/gi)].map((match)=>match[1].replace(/<[^>]*>/g,'').trim());
37
- for(const block of registry.blocks){
38
- for(const field of ['name','input','output','constraint','assumption','impl']) if(!block[field])issues.push('BLOCK_FIELD_MISSING '+block.id+'.'+field);
39
- if(!visible.includes(block.id))issues.push('BLOCK_BADGE_MISSING '+block.id);
40
- if(block.name&&!visible.includes(block.name))issues.push('BLOCK_NAME_MISSING '+block.id);
41
- }
42
- }catch(error){issues.push('BLOCK_REGISTRY_INVALID '+error.message);}
43
- }
44
- if(type==='policy-trace-animated'&&!/(rule|policy|allow|deny)/i.test(source)) issues.push('POLICY_TRACE_SEMANTIC_MISSING');
45
- if(type==='queue-animated'&&!/(queue|buffer|drain|fan-in)/i.test(source)) issues.push('QUEUE_SEMANTIC_MISSING');
46
- if(type==='paved-road-animated'&&!/(boundary|guardrail|secure|policy)/i.test(source)) issues.push('PAVED_ROAD_SEMANTIC_MISSING');
47
- if(issues.length){console.error('TYPE_FAIL '+type+' '+file);for(const issue of issues)console.error('- '+issue);process.exitCode=1;}
48
- else console.log('TYPE_PASS '+type+' family='+entry.family);
@@ -1,226 +0,0 @@
1
- const BOUNDARY_EDGE_PADDING=4;
2
- const BOUNDARY_EDGE_MIN_OVERLAP=12;
3
- const ARROWHEAD_TARGET_TOLERANCE=2;
4
-
5
- const decode=(s)=>s.replaceAll('&amp;','&').replaceAll('&lt;','<').replaceAll('&gt;','>').replaceAll('&quot;','"').replaceAll('&apos;',"'").replaceAll('&#39;',"'");
6
- const attributes=(s)=>Object.fromEntries([...s.matchAll(/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g)].map((m)=>[m[1],decode(m[2]??m[3]??'')]));
7
- const clean=(s)=>decode(s.replace(/<[^>]*>/g,' ').replace(/\s+/g,' ').trim());
8
- const widthOf=(text,size)=>[...text].reduce((n,c)=>n+(/\s/.test(c)?.28:/[\u1100-\u11ff\u3130-\u318f\uac00-\ud7af]/.test(c)?.98:/[ilI.,:;!|]/.test(c)?.32:/[MW@#%]/.test(c)?.82:.56),0)*size;
9
-
10
-
11
- function visibleSvgText(svg){
12
- return [...svg.matchAll(/<text\b([^>]*)>([\s\S]*?)<\/text>/gi)].map((m)=>{
13
- const a=attributes(m[1]),label=clean(m[2]),size=Number(a['font-size']||16),textAnchor=a['text-anchor']||'start',anchor={x:Number(a.x||0),y:Number(a.y||0)},w=widthOf(label,size),x=anchor.x-(textAnchor==='middle'?w/2:textAnchor==='end'?w:0),y=anchor.y-size*.82;
14
- return {label,size,role:a['data-role']||'',anchor,edgeFor:a['data-edge-for']||'',boundaryFor:a['data-boundary-for']||a['data-group-for']||'',nodeFor:a['data-node-id']||'',x,y,w,h:size*1.22};
15
- }).filter((t)=>t.label);
16
- }
17
- function svgContent(source){return [...source.matchAll(/<svg\b[^>]*>[\s\S]*?<\/svg>/gi)].map((m)=>m[0]).join('\n');}
18
- function parseRoutes(svg){
19
- const routes=[];
20
- for(const m of svg.matchAll(/<(line|path)\b([^>]*)>/gi)){
21
- const a=attributes(m[2]); if(!a['data-from']||!a['data-to'])continue;
22
- let segments=[];
23
- if(m[1].toLowerCase()==='line'){
24
- const v=['x1','y1','x2','y2'].map((k)=>Number(a[k])); if(v.every(Number.isFinite))segments=[[v[0],v[1],v[2],v[3]]];
25
- }else if(a.d){
26
- const parts=a.d.match(/[a-zA-Z]|[-+]?(?:\d*\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/gi)||[];let i=0,cmd='',x=0,y=0,px=0,py=0;
27
- while(i<parts.length){if(/^[a-z]$/i.test(parts[i]))cmd=parts[i++];if(!cmd)break;const rel=cmd===cmd.toLowerCase(),up=cmd.toUpperCase();
28
- if(up==='M'||up==='L'){if(i+1>=parts.length||/^[a-z]$/i.test(parts[i])){cmd='';continue;}const nx=Number(parts[i++])+(rel?x:0),ny=Number(parts[i++])+(rel?y:0);if(up==='L')segments.push([x,y,nx,ny]);x=nx;y=ny;}
29
- else if(up==='H'){if(i>=parts.length||/^[a-z]$/i.test(parts[i])){cmd='';continue;}const nx=Number(parts[i++])+(rel?x:0);segments.push([x,y,nx,y]);x=nx;}
30
- else if(up==='V'){if(i>=parts.length||/^[a-z]$/i.test(parts[i])){cmd='';continue;}const ny=Number(parts[i++])+(rel?y:0);segments.push([x,y,x,ny]);y=ny;}
31
- else if(up==='C'){if(i+5>=parts.length||/^[a-z]$/i.test(parts[i])){cmd='';continue;}const p=(n)=>[Number(parts[n])+(rel?x:0),Number(parts[n+1])+(rel?y:0)],start=[x,y],c1=p(i),c2=p(i+2),end=p(i+4);i+=6;let previous=start;for(let step=1;step<=16;step++){const t=step/16,u=1-t,next=[u*u*u*start[0]+3*u*u*t*c1[0]+3*u*t*t*c2[0]+t*t*t*end[0],u*u*u*start[1]+3*u*u*t*c1[1]+3*u*t*t*c2[1]+t*t*t*end[1]];segments.push([previous[0],previous[1],next[0],next[1]]);previous=next;}x=end[0];y=end[1];}
32
- else {cmd='';while(i<parts.length&&!/^[a-z]$/i.test(parts[i]))i++;}
33
- }
34
- }
35
- if(segments.length)routes.push({from:a['data-from'],to:a['data-to'],label:a['data-label']||'',segments,markerStart:a['marker-start']||'',markerEnd:a['marker-end']||'',strokeWidth:Number(a['stroke-width']||1)});
36
- }
37
- return routes;
38
- }
39
- function rectangles(svg){
40
- const nodes=[];
41
- for(const m of svg.matchAll(/<rect\b([^>]*)\/?\s*>/gi)){
42
- const a=attributes(m[1]);if(!a['data-node-id'])continue;
43
- const box={id:a['data-node-id'],type:a['data-node-type']||'',outcomes:(a['data-outcomes']||'').split('|').map((value)=>value.trim()).filter(Boolean),fill:a.fill||'',display:a.display||'',x:Number(a.x||0),y:Number(a.y||0),w:Number(a.width||0),h:Number(a.height||0)};
44
- if(box.w>0&&box.h>0)nodes.push(box);
45
- }
46
- return nodes;
47
- }
48
- function segmentHitsBox(s,b,pad=0){
49
- const [x1,y1,x2,y2]=s,loX=Math.min(x1,x2),hiX=Math.max(x1,x2),loY=Math.min(y1,y2),hiY=Math.max(y1,y2),left=b.x-pad,right=b.x+b.w+pad,top=b.y-pad,bottom=b.y+b.h+pad;
50
- if(x1===x2)return x1>=left&&x1<=right&&hiY>=top&&loY<=bottom;
51
- if(y1===y2)return y1>=top&&y1<=bottom&&hiX>=left&&loX<=right;
52
- const steps=24;for(let i=0;i<=steps;i++){const t=i/steps,x=x1+(x2-x1)*t,y=y1+(y2-y1)*t;if(x>=left&&x<=right&&y>=top&&y<=bottom)return true;}return false;
53
- }
54
- function segmentHitsText(s,t,pad=1){
55
- const b={x:t.x-pad,y:t.y-pad,w:t.w+pad*2,h:t.h+pad*2};return segmentHitsBox(s,b,0);
56
- }
57
- function textOverlapsNode(text,node,pad=1){return text.x<node.x+node.w+pad&&text.x+text.w>node.x-pad&&text.y<node.y+node.h+pad&&text.y+text.h>node.y-pad;}
58
- function gap(a,b){const dx=Math.max(0,a.x-(b.x+b.w),b.x-(a.x+a.w)),dy=Math.max(0,a.y-(b.y+b.h),b.y-(a.y+a.h));return Math.hypot(dx,dy);}
59
-
60
- function boundaryOutlines(svg){
61
- const outlines=[];
62
- const add=(a)=>{
63
- const markers=['data-trust-boundary','data-boundary','data-boundary-name','data-group-boundary','data-group-name','data-group-label','data-group-id'];
64
- const classMarker=/\b(?:boundary|group)(?:[-_][\w-]+)?\b/i.test(a.class||'');
65
- if(!markers.some((key)=>Object.hasOwn(a,key))&&!classMarker)return;
66
- const labels=[a['data-trust-boundary'],a['data-boundary-name'],a['data-group-boundary'],a['data-group-name'],a['data-group-label']].filter((value)=>value&&value!=='true');
67
- const x=Number(a.x||0),y=Number(a.y||0),w=Number(a.width||0),h=Number(a.height||0);
68
- if(w>0&&h>0)outlines.push({id:a['data-group-id']||a.id||(a['data-boundary']!=='true'&&a['data-boundary'])||labels[0]||'outline',labels,x,y,w,h,strokeWidth:Number(a['stroke-width']||1)});
69
- };
70
- for(const match of svg.matchAll(/<rect\b([^>]*)\/?\s*>/gi))add(attributes(match[1]));
71
- for(const match of svg.matchAll(/<g\b([^>]*)>([\s\S]*?)<\/g>/gi)){
72
- const group=attributes(match[1]);
73
- if(!['data-trust-boundary','data-boundary','data-boundary-name','data-group-boundary','data-group-name','data-group-label','data-group-id'].some((key)=>Object.hasOwn(group,key)))continue;
74
- const rect=match[2].match(/<rect\b([^>]*)\/?\s*>/i);
75
- if(rect)add({...attributes(rect[1]),...group});
76
- }
77
- return outlines;
78
- }
79
-
80
- function pointSegmentDistance(point,segment){
81
- const [x1,y1,x2,y2]=segment,dx=x2-x1,dy=y2-y1,length=dx*dx+dy*dy;
82
- const t=length?Math.max(0,Math.min(1,((point.x-x1)*dx+(point.y-y1)*dy)/length)):0;
83
- return Math.hypot(point.x-(x1+t*dx),point.y-(y1+t*dy));
84
- }
85
- function routeDistance(point,route){return Math.min(...route.segments.map((segment)=>pointSegmentDistance(point,segment)));}
86
- function isBoundaryLabel(text,outlines){return text.role==='boundary'||text.boundaryFor||outlines.some((outline)=>outline.labels.includes(text.label)||outline.id===text.boundaryFor);}
87
- function outlineEdges(outline){return [[outline.x,outline.y,outline.x+outline.w,outline.y],[outline.x+outline.w,outline.y,outline.x+outline.w,outline.y+outline.h],[outline.x+outline.w,outline.y+outline.h,outline.x,outline.y+outline.h],[outline.x,outline.y+outline.h,outline.x,outline.y]];}
88
- function textHitsOutline(text,outline){return outlineEdges(outline).some((edge)=>segmentHitsText(edge,text,outline.strokeWidth/2+.5));}
89
- function segmentAlongOutline(segment,outline){
90
- const [x1,y1,x2,y2]=segment,loX=Math.min(x1,x2),hiX=Math.max(x1,x2),loY=Math.min(y1,y2),hiY=Math.max(y1,y2),right=outline.x+outline.w,bottom=outline.y+outline.h;
91
- if(Math.abs(y1-y2)<=1){const overlap=Math.min(hiX,right)-Math.max(loX,outline.x);return overlap>BOUNDARY_EDGE_MIN_OVERLAP&&(Math.abs(y1-outline.y)<=BOUNDARY_EDGE_PADDING||Math.abs(y1-bottom)<=BOUNDARY_EDGE_PADDING);}
92
- if(Math.abs(x1-x2)<=1){const overlap=Math.min(hiY,bottom)-Math.max(loY,outline.y);return overlap>BOUNDARY_EDGE_MIN_OVERLAP&&(Math.abs(x1-outline.x)<=BOUNDARY_EDGE_PADDING||Math.abs(x1-right)<=BOUNDARY_EDGE_PADDING);}
93
- return false;
94
- }
95
- function markerPathPoints(d){
96
- const parts=d.match(/[a-zA-Z]|[-+]?(?:\d*\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/gi)||[],points=[];let i=0,cmd='',x=0,y=0;
97
- while(i<parts.length){if(/^[a-z]$/i.test(parts[i]))cmd=parts[i++];if(!cmd)break;const upper=cmd.toUpperCase(),relative=cmd===cmd.toLowerCase();
98
- if(upper==='M'||upper==='L'){if(i+1>=parts.length||/^[a-z]$/i.test(parts[i]))break;let nx=Number(parts[i++]),ny=Number(parts[i++]);if(relative){nx+=x;ny+=y;}x=nx;y=ny;points.push([x,y]);}
99
- else if(upper==='H'){if(i>=parts.length||/^[a-z]$/i.test(parts[i]))break;x=Number(parts[i++])+(relative?x:0);points.push([x,y]);}
100
- else if(upper==='V'){if(i>=parts.length||/^[a-z]$/i.test(parts[i]))break;y=Number(parts[i++])+(relative?y:0);points.push([x,y]);}
101
- else if(upper==='Z')cmd='';
102
- else {while(i<parts.length&&!/^[a-z]$/i.test(parts[i]))i++;cmd='';}
103
- }
104
- return points;
105
- }
106
- function markerDefinitions(svg){
107
- const markers=new Map();
108
- for(const match of svg.matchAll(/<marker\b([^>]*)>([\s\S]*?)<\/marker>/gi)){
109
- const a=attributes(match[1]),id=a.id;if(!id)continue;
110
- const points=[];
111
- for(const shape of match[2].matchAll(/<(path|polygon)\b([^>]*)>/gi)){
112
- const attrsForShape=attributes(shape[2]);
113
- if(shape[1].toLowerCase()==='polygon'){
114
- const values=(attrsForShape.points||'').match(/[-+]?(?:\d*\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/gi)||[];
115
- for(let i=0;i+1<values.length;i+=2)points.push([Number(values[i]),Number(values[i+1])]);
116
- }else if(attrsForShape.d){
117
- points.push(...markerPathPoints(attrsForShape.d));
118
- }
119
- }
120
- markers.set(id,{refX:Number(a.refX||0),refY:Number(a.refY||0),units:a.markerUnits||'strokeWidth',width:Number(a.markerWidth||0),height:Number(a.markerHeight||0),points,closed:/\bz\b/i.test(match[2])||/<polygon\b/i.test(match[2])});
121
- }
122
- return markers;
123
- }
124
- function markerOverlapsTarget(route,target,markers){
125
- const match=route.markerEnd.match(/url\(\s*["']?#([^\s)'"`]+)["']?\s*\)/i),marker=match&&markers.get(match[1]),segment=route.segments.at(-1);
126
- if(!segment)return false;
127
- const [x1,y1,x2,y2]=segment,length=Math.hypot(x2-x1,y2-y1)||1,ux=(x2-x1)/length,uy=(y2-y1)/length,nx=-uy,ny=ux;
128
- if(!marker?.points.length){const reach=route.strokeWidth;return segmentHitsBox([x2+ux*reach,y2+uy*reach,x2+ux*reach,y2+uy*reach],target,-1);}
129
- const scale=marker.units==='userSpaceOnUse'?1:route.strokeWidth;
130
- const points=marker.points.map(([x,y])=>[x2+ux*(x-marker.refX)*scale+nx*(y-marker.refY)*scale,y2+uy*(x-marker.refX)*scale+ny*(y-marker.refY)*scale]);
131
- if(points.some(([x,y])=>x>target.x+1&&x<target.x+target.w-1&&y>target.y+1&&y<target.y+target.h-1))return true;
132
- const segments=points.slice(1).map((point,index)=>[points[index][0],points[index][1],point[0],point[1]]);
133
- if(marker.closed&&points.length>2)segments.push([points.at(-1)[0],points.at(-1)[1],points[0][0],points[0][1]]);
134
- return segments.some((line)=>segmentHitsBox(line,target,-1));
135
- }
136
- function markerFor(route,edge,markers){
137
- const value=edge==='end'?route.markerEnd:route.markerStart,match=value.match(/url\(\s*["']?#([^\s)'"`]+)["']?\s*\)/i);
138
- return match?markers.get(match[1]):null;
139
- }
140
- function markerScale(marker,route){return marker.units==='userSpaceOnUse'?1:route.strokeWidth;}
141
- function markerHeadLength(marker){
142
- if(!marker?.points.length)return 0;
143
- const xs=marker.points.map(([x])=>x);
144
- return Math.max(...xs)-Math.min(...xs);
145
- }
146
- function markerTip(route,marker,edge){
147
- const segment=edge==='end'?route.segments.at(-1):route.segments[0];
148
- if(!segment)return null;
149
- const [x1,y1,x2,y2]=segment,dx=x2-x1,dy=y2-y1,length=Math.hypot(dx,dy)||1,ux=dx/length,uy=dy/length;
150
- const anchor=edge==='end'?[x2,y2]:[x1,y1],direction=edge==='end'?1:-1;
151
- const forward=marker?.points.length?Math.max(...marker.points.map(([x])=>direction*(x-marker.refX)))*markerScale(marker,route):0;
152
- return [anchor[0]+direction*ux*forward,anchor[1]+direction*uy*forward];
153
- }
154
- function distanceToBoxBoundary(point,box){
155
- const [x,y]=point,candidates=[];
156
- if(y>=box.y-ARROWHEAD_TARGET_TOLERANCE&&y<=box.y+box.h+ARROWHEAD_TARGET_TOLERANCE)candidates.push(Math.abs(x-box.x),Math.abs(x-(box.x+box.w)));
157
- if(x>=box.x-ARROWHEAD_TARGET_TOLERANCE&&x<=box.x+box.w+ARROWHEAD_TARGET_TOLERANCE)candidates.push(Math.abs(y-box.y),Math.abs(y-(box.y+box.h)));
158
- if(candidates.length)return Math.min(...candidates);
159
- return Math.hypot(Math.max(box.x-x,0,x-(box.x+box.w)),Math.max(box.y-y,0,y-(box.y+box.h)));
160
- }
161
- function decisionBranchQuality(nodes,routes){
162
- const issues=[];
163
- for(const node of nodes.filter((item)=>item.type==='decision')){
164
- if(node.outcomes.length<2){issues.push('DECISION_OUTCOMES_MISSING '+node.id+' must name at least two outcomes');continue;}
165
- const labels=new Set(routes.filter((route)=>route.from===node.id).map((route)=>route.label).filter(Boolean));
166
- for(const outcome of node.outcomes)if(!labels.has(outcome))issues.push('DECISION_OUTCOME_MISSING '+node.id+' '+outcome);
167
- for(const label of labels)if(!node.outcomes.includes(label))issues.push('DECISION_OUTCOME_UNDECLARED '+node.id+' '+label);
168
- }
169
- return issues;
170
- }
171
-
172
- function routeLength(route){return route.segments.reduce((sum,[x1,y1,x2,y2])=>sum+Math.hypot(x2-x1,y2-y1),0);}
173
- function routeBends(route){
174
- const directions=route.segments.map(([x1,y1,x2,y2])=>{const dx=x2-x1,dy=y2-y1,length=Math.hypot(dx,dy);return length?{x:dx/length,y:dy/length}:null;}).filter(Boolean);
175
- let bends=0;
176
- for(let i=1;i<directions.length;i++)if(directions[i-1].x*directions[i].x+directions[i-1].y*directions[i].y<Math.SQRT1_2)bends++;
177
- return bends;
178
- }
179
- function routeManhattanDistance(route){
180
- const start=route.segments[0]?.slice(0,2),end=route.segments.at(-1)?.slice(2,4);
181
- return start&&end?Math.abs(start[0]-end[0])+Math.abs(start[1]-end[1])||null:null;
182
- }
183
- function alignedRouteKind(route,nodes){
184
- const from=nodes.find((node)=>node.id===route.from),to=nodes.find((node)=>node.id===route.to);
185
- if(!from||!to)return null;
186
- const sameRow=Math.abs(from.y+from.h/2-(to.y+to.h/2))<=1,sameColumn=Math.abs(from.x+from.w/2-(to.x+to.w/2))<=1;
187
- const horizontal=route.segments.every(([x1,y1,x2,y2])=>Math.abs(y1-y2)<=1),vertical=route.segments.every(([x1,y1,x2,y2])=>Math.abs(x1-x2)<=1);
188
- if(sameRow&&nodes.every((node)=>node===from||node===to||Math.abs(node.y+node.h/2-(from.y+from.h/2))>1||node.x+node.w/2<=Math.min(from.x+from.w/2,to.x+to.w/2)||node.x+node.w/2>=Math.max(from.x+from.w/2,to.x+to.w/2))&&!horizontal)return 'same-row';
189
- if(sameColumn&&nodes.every((node)=>node===from||node===to||Math.abs(node.x+node.w/2-(from.x+from.w/2))>1||node.y+node.h/2<=Math.min(from.y+from.h/2,to.y+to.h/2)||node.y+node.h/2>=Math.max(from.y+from.h/2,to.y+to.h/2))&&!vertical)return 'same-column';
190
- return null;
191
- }
192
- function routeCrossesBoundary(route,outline){
193
- const points=route.segments.flatMap(([x1,y1,x2,y2])=>[[x1,y1],[x2,y2],[(x1+x2)/2,(y1+y2)/2]]);
194
- const inside=points.some(([x,y])=>x>outline.x&&x<outline.x+outline.w&&y>outline.y&&y<outline.y+outline.h);
195
- const outside=points.some(([x,y])=>x<outline.x||x>outline.x+outline.w||y<outline.y||y>outline.y+outline.h);
196
- return inside&&outside;
197
- }
198
- function collinearOverlap(a,b){
199
- for(const [ax1,ay1,ax2,ay2] of a.segments)for(const [bx1,by1,bx2,by2] of b.segments){
200
- if(Math.abs(ay1-ay2)<=.5&&Math.abs(by1-by2)<=.5&&Math.abs(ay1-by1)<12){if(Math.min(Math.max(ax1,ax2),Math.max(bx1,bx2))-Math.max(Math.min(ax1,ax2),Math.min(bx1,bx2))>=12)return true;}
201
- if(Math.abs(ax1-ax2)<=.5&&Math.abs(bx1-bx2)<=.5&&Math.abs(ax1-bx1)<12){if(Math.min(Math.max(ay1,ay2),Math.max(by1,by2))-Math.max(Math.min(ay1,ay2),Math.min(by1,by2))>=12)return true;}
202
- }
203
- return false;
204
- }
205
- function segmentIntersectionPoint(a,b){
206
- const rx=a[2]-a[0],ry=a[3]-a[1],sx=b[2]-b[0],sy=b[3]-b[1],denominator=rx*sy-ry*sx;
207
- if(Math.abs(denominator)<1e-8)return null;
208
- const qx=b[0]-a[0],qy=b[1]-a[1],t=(qx*sy-qy*sx)/denominator,u=(qx*ry-qy*rx)/denominator;
209
- if(t< -1e-8||t>1+1e-8||u< -1e-8||u>1+1e-8)return null;
210
- return [a[0]+t*rx,a[1]+t*ry];
211
- }
212
- function routeEndpoints(route){
213
- return [{id:route.from,point:route.segments[0].slice(0,2)},{id:route.to,point:route.segments.at(-1).slice(2,4)}];
214
- }
215
- function routeCrossingPoints(a,b){
216
- const aEnds=routeEndpoints(a),bEnds=routeEndpoints(b),points=[];
217
- for(const first of a.segments)for(const second of b.segments){
218
- const point=segmentIntersectionPoint(first,second);
219
- if(!point)continue;
220
- const sharedNodeEndpoint=aEnds.some((left)=>bEnds.some((right)=>left.id===right.id&&Math.hypot(left.point[0]-right.point[0],left.point[1]-right.point[1])<=.5&&Math.hypot(left.point[0]-point[0],left.point[1]-point[1])<=.5));
221
- if(sharedNodeEndpoint||points.some((prior)=>Math.hypot(prior[0]-point[0],prior[1]-point[1])<=.5))continue;
222
- points.push(point);
223
- }
224
- return points;
225
- }
226
- export { BOUNDARY_EDGE_PADDING, ARROWHEAD_TARGET_TOLERANCE, attributes, widthOf, visibleSvgText, svgContent, parseRoutes, rectangles, boundaryOutlines, segmentHitsBox, segmentHitsText, textOverlapsNode, gap, routeDistance, isBoundaryLabel, textHitsOutline, segmentAlongOutline, markerDefinitions, markerOverlapsTarget, markerFor, markerScale, markerHeadLength, markerTip, distanceToBoxBoundary, decisionBranchQuality, routeLength, routeBends, routeManhattanDistance, alignedRouteKind, routeCrossesBoundary, collinearOverlap, routeCrossingPoints };
@@ -1,146 +0,0 @@
1
- import { sourceMetrics } from './diagram-metrics.mjs';
2
- import { OF_LIMITS } from './diagram-craft-rules.mjs';
3
-
4
- const MAX_EDGE_LABEL_ANCHOR_DISTANCE=24;
5
- const ARROWHEAD_CANVAS_FLOOR=12/1080;
6
- const ARROWHEAD_STROKE_MULTIPLE=5;
7
-
8
- const contamination=[
9
- /\blitfamily\b/i, /\b(?:generator|generated by|template|prototype)\b/i,
10
- /\bsource\s*:/i, /\bnotes?\s*:/i, /\bstatic\s+first\b/i,
11
- /\baccessible\s+labels\b/i, /\bone\s+accent\b/i, /\bfocal\b/i,
12
- /\b(?:light|dark|full)\s*[·|/]\s*static\b/i, /\bdesign\s+rules?\b/i,
13
- /^\s*show\b/i,
14
- ];
15
-
16
- import { BOUNDARY_EDGE_PADDING, ARROWHEAD_TARGET_TOLERANCE, attributes, widthOf, visibleSvgText, svgContent, parseRoutes, rectangles, boundaryOutlines, segmentHitsBox, segmentHitsText, textOverlapsNode, gap, routeDistance, isBoundaryLabel, textHitsOutline, segmentAlongOutline, markerDefinitions, markerOverlapsTarget, markerFor, markerScale, markerHeadLength, markerTip, distanceToBoxBoundary, decisionBranchQuality, routeLength, routeBends, routeManhattanDistance, alignedRouteKind, routeCrossesBoundary, collinearOverlap, routeCrossingPoints } from './visual-quality-geometry.mjs';
17
-
18
- function officeDiagramChecks(texts, nodes, outlines, viewBox) {
19
- const issues = [], advisories = [];
20
- if (outlines.length >= 2) {
21
- const group = (node) => outlines.filter((outline) => node.x + node.w / 2 >= outline.x && node.x + node.w / 2 <= outline.x + outline.w && node.y + node.h / 2 >= outline.y && node.y + node.h / 2 <= outline.y + outline.h).sort((a,b)=>a.w*a.h-b.w*b.h)[0] ?? 'ungrouped';
22
- const same = [], different = [];
23
- for (let i=0;i<nodes.length;i++) for (let j=i+1;j<nodes.length;j++) (group(nodes[i])===group(nodes[j]) ? same : different).push(gap(nodes[i],nodes[j]));
24
- if (same.length && different.length) {
25
- const intra = Math.max(...same), inter = Math.min(...different);
26
- if (intra > 0 && inter < OF_LIMITS.groupGapRatio * intra) issues.push(`OF-201 CLUSTER_GAP_RATIO inter=${inter.toFixed(1)} intra=${intra.toFixed(1)} required=${OF_LIMITS.groupGapRatio}`);
27
- }
28
- }
29
- const hues = [];
30
- const canvasArea = viewBox ? viewBox.w * viewBox.h : Infinity;
31
- for (const node of nodes) {
32
- if (node.display === 'none' || node.w * node.h >= canvasArea * OF_LIMITS.fullBleedFraction) continue;
33
- const hex = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(node.fill);
34
- if (!hex) continue;
35
- const raw = hex[1].length === 3 ? [...hex[1]].map((digit)=>digit+digit).join('') : hex[1];
36
- const [r,g,b]=[0,2,4].map((offset)=>parseInt(raw.slice(offset,offset+2),16)/255),high=Math.max(r,g,b),low=Math.min(r,g,b),delta=high-low,lightness=(high+low)/2;
37
- const saturation = delta === 0 ? 0 : delta / (1-Math.abs(2*lightness-1));
38
- if (lightness < OF_LIMITS.accentLightnessMin || lightness > OF_LIMITS.accentLightnessMax || saturation < OF_LIMITS.accentSaturationMin) continue;
39
- const hue = ((high===r?((g-b)/delta)%6:high===g?(b-r)/delta+2:(r-g)/delta+4)*60+360)%360;
40
- if (!hues.some((prior)=>Math.min(Math.abs(prior-hue),360-Math.abs(prior-hue))<=OF_LIMITS.hueFamilyDegrees)) hues.push(hue);
41
- }
42
- if (hues.length >= OF_LIMITS.accentHighFamilies) issues.push(`OF-202 ACCENT_COUNT families=${hues.length} accent hue families among node fills; keep three to five, each tied to a role (OF-202)`);
43
- for (const text of texts) {
44
- const chars=[...text.label],latin=chars.filter((char)=>/[A-Za-z0-9]/.test(char)).length/Math.max(1,chars.filter((char)=>/\S/.test(char)).length);
45
- if (latin >= OF_LIMITS.latinShareMin && text.label !== text.label.toUpperCase()) {
46
- const words=text.label.match(/[A-Za-z]+/g)??[],long=words.filter((word)=>word.length>=OF_LIMITS.titleCaseWordLength),capitalized=long.filter((word)=>/^[A-Z][a-z]+$/.test(word));
47
- if (capitalized.length>=OF_LIMITS.titleCaseMinWords && capitalized.length/Math.max(1,long.length)>OF_LIMITS.titleCaseShareMin && words.some((word)=>/^(Of|And|The|To|For|In)$/.test(word))) advisories.push(`OF-203 LABEL_CASE ${text.label}`);
48
- }
49
- const box = text.nodeFor ? nodes.find((node)=>node.id===text.nodeFor) : text.boundaryFor ? outlines.find((outline)=>outline.id===text.boundaryFor) : null;
50
- if (box) {
51
- const measured = widthOf(text.label,text.size),available=box.w-2*BOUNDARY_EDGE_PADDING;
52
- if (measured>available) issues.push(`OF-204 LABEL_OVERFLOW ${text.label} width=${measured.toFixed(1)} available=${available.toFixed(1)}`);
53
- }
54
- }
55
- return { issues, advisories };
56
- }
57
-
58
- function sequenceQuality(source,svg=svgContent(source),nodes=rectangles(svg),routes=parseRoutes(svg)){
59
- if(!/\bdata-type\s*=\s*["']sequence(?:-oauth)?["']/i.test(source)&&!/\bid\s*=\s*["']diagram-sequence(?:-oauth)?-[^"']+["']/i.test(svg))return [];
60
- const lifelines=new Map();
61
- for(const match of svg.matchAll(/<line\b([^>]*)>/gi)){
62
- const a=attributes(match[1]),name=a['data-lifeline-for'];
63
- if(name&&a['stroke-dasharray']&&Number(a.x1)===Number(a.x2)&&Number(a.y2)>Number(a.y1))lifelines.set(name,{x:Number(a.x1),top:Number(a.y1),bottom:Number(a.y2)});
64
- }
65
- const issues=[],messages=routes.map((route)=>({route,start:route.segments[0].slice(0,2),end:route.segments.at(-1).slice(2,4),y:(route.segments[0][1]+route.segments.at(-1)[3])/2}));
66
- const lastMessageY=Math.max(0,...messages.map((message)=>message.y));
67
- for(const node of nodes){
68
- const line=lifelines.get(node.id);
69
- if(!line){issues.push('SEQUENCE_LIFELINE_MISSING '+node.id);continue;}
70
- if(Math.abs(line.x-(node.x+node.w/2))>1||Math.abs(line.top-(node.y+node.h))>1)issues.push('SEQUENCE_LIFELINE_ALIGNMENT '+node.id);
71
- if(line.bottom+1<lastMessageY)issues.push('SEQUENCE_LIFELINE_SHORT '+node.id+' ends before last message');
72
- }
73
- let previousY=-Infinity;
74
- for(const message of messages){
75
- const from=lifelines.get(message.route.from),to=lifelines.get(message.route.to);
76
- if(!from||!to)continue;
77
- if(Math.abs(message.start[0]-from.x)>1||Math.abs(message.end[0]-to.x)>1)issues.push('SEQUENCE_MESSAGE_OFF_LIFELINE '+message.route.from+'->'+message.route.to);
78
- if(message.y<=previousY)issues.push('SEQUENCE_MESSAGE_ORDER '+message.route.from+'->'+message.route.to+' is not top-to-bottom');
79
- previousY=message.y;
80
- }
81
- return issues;
82
- }
83
-
84
- function visualQuality(source,{enforceCanvas=false,scale=null}={}){
85
- const svg=svgContent(source),texts=visibleSvgText(svg),nodes=rectangles(svg),routes=parseRoutes(svg),outlines=boundaryOutlines(svg),markers=markerDefinitions(svg),metrics=sourceMetrics(source),issues=[],advisories=[],sequenceDiagram=/\bdata-type\s*=\s*["']sequence(?:-oauth)?["']/i.test(source);
86
- const contaminated=texts.filter((t)=>contamination.some((rule)=>rule.test(t.label))).map((t)=>t.label);
87
- if(contaminated.length)issues.push('PROCESS_TEXT '+[...new Set(contaminated)].join(' | '));
88
- for(const text of texts.filter((item)=>item.role==='edge'||item.edgeFor)){
89
- const matches=routes.filter((route)=>route.from+'|'+route.to===text.edgeFor&&(!route.label||route.label===text.label));
90
- if(!text.edgeFor||matches.length!==1){issues.push('EDGE_LABEL_UNBOUND '+(text.edgeFor||text.label));continue;}
91
- const own=matches[0],distance=routeDistance(text.anchor,own),nearestOther=Math.min(Infinity,...routes.filter((route)=>route!==own).map((route)=>routeDistance(text.anchor,route)));
92
- if(distance>MAX_EDGE_LABEL_ANCHOR_DISTANCE)issues.push('EDGE_LABEL_TOO_FAR '+text.label+' own='+distance.toFixed(1)+'px max='+MAX_EDGE_LABEL_ANCHOR_DISTANCE+'px');
93
- if(Number.isFinite(nearestOther)&&distance>=nearestOther)issues.push('EDGE_LABEL_NEAREST_PATH '+text.label+' own='+distance.toFixed(1)+'px other='+nearestOther.toFixed(1)+'px');
94
- for(const node of nodes)if(textOverlapsNode(text,node))issues.push('EDGE_LABEL_NODE_COLLISION '+text.label+' overlaps '+node.id);
95
- }
96
- for(const route of routes){
97
- const facing=routeManhattanDistance(route),ratio=facing?routeLength(route)/facing:null,aligned=alignedRouteKind(route,nodes);
98
- if(ratio>1.4)issues.push('ROUTE_DETOUR '+route.from+'->'+route.to+' ratio='+ratio.toFixed(2)+' max=1.40');
99
- if(aligned)issues.push('ROUTE_ALIGNED_PATH '+route.from+'->'+route.to+' '+aligned+' neighbors require one straight segment');
100
- const crossesBoundary=outlines.some((outline)=>routeCrossesBoundary(route,outline)),bendLimit=crossesBoundary?3:2,bends=routeBends(route);
101
- if(bends>bendLimit)issues.push('ROUTE_BENDS '+route.from+'->'+route.to+' bends='+bends+' max='+bendLimit);
102
- if(route.markerStart&&route.markerEnd)issues.push('ROUTE_OPPOSED_HEADS '+route.from+'->'+route.to);
103
- for(const text of texts)for(const segment of route.segments)if(segmentHitsText(segment,text)){issues.push('EDGE_TEXT_COLLISION '+route.from+'->'+route.to+': '+text.label);break;}
104
- for(const node of nodes)if(node.id!==route.from&&node.id!==route.to&&route.segments.some((s)=>segmentHitsBox(s,node,8)))issues.push('ROUTE_THROUGH_NODE '+route.from+'->'+route.to+' via '+node.id);
105
- for(const outline of outlines)if(route.segments.some((segment)=>segmentAlongOutline(segment,outline))){issues.push('ROUTE_ALONG_BOUNDARY '+route.from+'->'+route.to+' along '+outline.id);break;}
106
- const target=nodes.find((node)=>node.id===route.to);
107
- for(const edge of ['start','end'])if(edge==='end'?route.markerEnd:route.markerStart){
108
- const marker=markerFor(route,edge,markers),minimum=Math.max(ARROWHEAD_STROKE_MULTIPLE*route.strokeWidth,ARROWHEAD_CANVAS_FLOOR*(metrics.viewBox?.w||1080));
109
- const length=markerHeadLength(marker)*markerScale(marker||{units:'userSpaceOnUse'},route);
110
- if(!marker)issues.push('ARROWHEAD_GEOMETRY_MISSING '+route.from+'->'+route.to+' '+edge);
111
- else if(length+0.01<minimum)issues.push('ARROWHEAD_SIZE_FLOOR '+route.from+'->'+route.to+' '+edge+'='+length.toFixed(1)+'px min='+minimum.toFixed(1)+'px (12/1080 canvas, 5x stroke)');
112
- }
113
- if(route.markerEnd&&target&&!sequenceDiagram){
114
- const marker=markerFor(route,'end',markers),tip=markerTip(route,marker,'end');
115
- if(tip&&distanceToBoxBoundary(tip,target)>ARROWHEAD_TARGET_TOLERANCE)issues.push('ARROWHEAD_TIP_MISSED_TARGET '+route.from+'->'+route.to+' gap='+distanceToBoxBoundary(tip,target).toFixed(1)+'px max='+ARROWHEAD_TARGET_TOLERANCE+'px');
116
- }
117
- if(route.markerEnd&&target&&markerOverlapsTarget(route,target,markers))issues.push('ARROWHEAD_TARGET_OVERLAP '+route.from+'->'+route.to+' marker intersects target '+target.id);
118
- }
119
- issues.push(...decisionBranchQuality(nodes,routes));
120
- for(let i=0;i<routes.length;i++)for(let j=i+1;j<routes.length;j++){
121
- if(collinearOverlap(routes[i],routes[j]))issues.push('ROUTE_COLLINEAR_OVERLAP '+routes[i].from+'->'+routes[i].to+' / '+routes[j].from+'->'+routes[j].to+' shared within 12px');
122
- for(const point of routeCrossingPoints(routes[i],routes[j]))issues.push('ROUTE_CROSSING '+routes[i].from+'->'+routes[i].to+' / '+routes[j].from+'->'+routes[j].to+' at '+point[0].toFixed(1)+','+point[1].toFixed(1));
123
- }
124
- issues.push(...sequenceQuality(source,svg,nodes,routes));
125
- for(const text of texts)for(const outline of outlines)if(textHitsOutline(text,outline)){issues.push('OUTLINE_TEXT_COLLISION '+text.label+' crosses '+outline.id);break;}
126
- const boundaryTexts=texts.filter((text)=>isBoundaryLabel(text,outlines));
127
- const boundaryContrastFailures=boundaryTexts.filter((text)=>metrics.contrastFailures.some((failure)=>failure.text===text.label));
128
- for(const text of boundaryContrastFailures)issues.push('BOUNDARY_CONTRAST_FLOOR '+text.label+' below 4.5:1');
129
- for(let i=0;i<nodes.length;i++)for(let j=i+1;j<nodes.length;j++)if(gap(nodes[i],nodes[j])<12)issues.push('NODE_GAP '+nodes[i].id+'/'+nodes[j].id+' below 12px');
130
- const fontFailures=[];
131
- if(enforceCanvas){
132
- const ratio=scale??(metrics.viewBox?Math.min(metrics.viewBox.w/1080,metrics.viewBox.h/640):1);
133
- if(!texts.some((t)=>t.role==='title'))issues.push('TITLE_ROLE_MISSING visible title must use data-role="title"');
134
- for(const t of texts){const boundary=isBoundaryLabel(t,outlines),minimum=t.role==='title'?28:t.role==='edge'||boundary?13:t.role==='node'?15:0;if(minimum&&t.size+0.01<minimum*ratio){const failure=(boundary?'boundary':t.role)+':'+t.label+'='+t.size+'px (min '+(minimum*ratio).toFixed(1)+'px)';if(boundary)issues.push('BOUNDARY_FONT_FLOOR '+failure);else fontFailures.push(failure);}}
135
- if(fontFailures.length)issues.push('FONT_FLOOR '+fontFailures.join(' | '));
136
- const points=nodes.flatMap((n)=>[[n.x,n.y],[n.x+n.w,n.y+n.h]]).concat(routes.flatMap((r)=>r.segments.flatMap((s)=>[[s[0],s[1]],[s[2],s[3]]])));
137
- const box=points.reduce((b,p)=>({left:Math.min(b.left,p[0]),top:Math.min(b.top,p[1]),right:Math.max(b.right,p[0]),bottom:Math.max(b.bottom,p[1])}),{left:Infinity,top:Infinity,right:-Infinity,bottom:-Infinity});
138
- if(nodes.length&&metrics.viewBox){const safeWidth=metrics.viewBox.w*.90,safeHeight=metrics.viewBox.h*.74,width=(box.right-box.left)/safeWidth,height=(box.bottom-box.top)/safeHeight;if(width<.75||height<.54)issues.push('CONTENT_FILL safe-area-width='+width.toFixed(3)+' safe-area-height='+height.toFixed(3)+' minimum=.75/.54');}
139
- if(!nodes.length)issues.push('CONTENT_NODES_MISSING');
140
- }
141
- const office = officeDiagramChecks(texts,nodes,outlines,metrics.viewBox);
142
- issues.push(...office.issues);
143
- advisories.push(...office.advisories);
144
- return {issues,advisories,contaminated,fonts:fontFailures,nodes:nodes.length,edges:routes.length,edgeLabelMaxAnchorDistance:MAX_EDGE_LABEL_ANCHOR_DISTANCE,arrowheadFloor:{canvas:ARROWHEAD_CANVAS_FLOOR,strokeMultiple:ARROWHEAD_STROKE_MULTIPLE,targetTolerance:ARROWHEAD_TARGET_TOLERANCE},boundaryTexts:boundaryTexts.length};
145
- }
146
- export { visualQuality, visibleSvgText, parseRoutes, rectangles, boundaryOutlines, sequenceQuality };
@@ -1,35 +0,0 @@
1
- lit-docx — LitGravity document skill
2
-
3
- Converters, publisher registry and templates, slop lint, visual audit and
4
- page-fill checks are ported from the author's MIT-licensed
5
- "publisher-docx-skill". Written for this port: scripts/qa_docx.py, the --kind
6
- option of scripts/slop_lint.py, the PNG pages in scripts/visual_audit.py, and
7
- the shared helpers that live in the sibling skill folder lit-pptx/scripts
8
- (ooxml_integrity.py, render_pages.py, office-runtime.mjs,
9
- office_runtime_bootstrap.py, office_data.py). The references/ documents were
10
- written anew for LitGravity.
11
-
12
- MIT License
13
-
14
- Copyright (c) 2026 wjgoarxiv
15
-
16
- Permission is hereby granted, free of charge, to any person obtaining a copy
17
- of this software and associated documentation files (the "Software"), to deal
18
- in the Software without restriction, including without limitation the rights
19
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- copies of the Software, and to permit persons to whom the Software is
21
- furnished to do so, subject to the following conditions:
22
-
23
- The above copyright notice and this permission notice shall be included in all
24
- copies or substantial portions of the Software.
25
-
26
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
- SOFTWARE.
33
-
34
- Runtime dependencies are not bundled; they install on first use from
35
- lit-pptx/scripts/office-runtime-lock/requirements.lock, each under its own licence.
@@ -1,96 +0,0 @@
1
- # The build loop and the other workflows in detail
2
-
3
- `SKILL.md` carries the spine. This file holds the runtime facts, the data-file grammar, the gate groups, the look step and the workflows around the main build (Markdown out of DOCX and PDF, in-place edits, publisher PDF, registry changes). Open it when a step fails or when the job is something other than "Markdown to a new .docx".
4
-
5
- Path convention in commands: `SKILL_ROOT` is the folder of `SKILL.md`; `OFFICE="$SKILL_ROOT/../lit-pptx/scripts"` is where the shared office helpers live (`office-runtime.mjs`, `office_data.py`, `render_pages.py`, `ooxml_integrity.py`, `office_runtime_bootstrap.py`, the pinned lock folder). `lit-docx` and `lit-pptx` use one runtime, so the engine is installed once.
6
-
7
- ## 1. Runtime readiness
8
-
9
- | Command | Effect |
10
- | --- | --- |
11
- | `node "$OFFICE/office-runtime.mjs" status --json` | readiness, cache path, missing pieces, host tools (`soffice`, `pandoc`, `xelatex`); installs nothing |
12
- | `node "$OFFICE/office-runtime.mjs" install --json` | installs the pinned Node and Python halves into `$XDG_DATA_HOME/litgravity/runtime/office`; `--python` installs only the half this skill needs |
13
-
14
- - Documents need only the Python half (python-docx, Markdown, beautifulsoup4, PyMuPDF, PyYAML and pins). The first helper call installs it by itself and prints one notice line; every helper then re-runs under that interpreter, so `python3` is the right command.
15
- - `LITGRAVITY_OFFICE_PYTHON` names another interpreter (3.10 or newer). A Python release that has no published wheels yet fails with `No matching distribution found`; point the variable at a release with wheels (3.12 to 3.14) and rerun the install. `LITGRAVITY_OFFICE_RUNTIME` replaces the cache root; `LITGRAVITY_NODE` names the Node binary the helpers call.
16
- - A refused `run_command` or a failed install is `BLOCKED:`. Quote the error line and give the user command `npx @litfamily/litgravity runtime install office`.
17
- - Host tools are reported and never installed: `soffice` (rendered pages and the page checks), `pandoc` (DOCX to Markdown, the publisher PDF path), `xelatex` (publisher PDF).
18
-
19
- ## 2. Numbers from a data file
20
-
21
- When the document quotes one figure in several places, or carries totals, shares, growth rates or a budget that must add up, keep the numbers in one file beside the Markdown:
22
-
23
- ```yaml
24
- data: budget.data.json # frontmatter; a CSV path, or several paths separated by commas
25
- ```
26
-
27
- ```json
28
- {
29
- "values": {"staff": 3, "monthly_cost": 420, "annual_cost": "=monthly_cost * 12", "capex": 9600, "monthly_saving": 1150,
30
- "payback_months": "=capex / (monthly_saving - monthly_cost)"},
31
- "tables": {"budget": {"csv": "budget.csv", "derive": {"비중(%)": "=share(금액, sum(budget.금액))"}, "total": "합계", "format": {"비중(%)": ".1f"}}},
32
- "checks": ["budget.금액['합계'] == capex", "payback_months < 36"]
33
- }
34
- ```
35
-
36
- | Piece | Meaning |
37
- | --- | --- |
38
- | `values` | named numbers; a string starting with `=` is a formula over other names |
39
- | `tables` | a CSV (first row headers, first column row keys) or inline `columns` and `rows`; `derive` adds computed columns, `total` names the total row, `format` sets a Python format spec per column |
40
- | `checks` | plain expressions that must hold; the converter refuses to build when one fails |
41
-
42
- In the Markdown: `{{ annual_cost }}` (thousands separators; a whole amount prints without decimals), `{{ payback_months | .1f }}`, `{{ growth(new, old) | +.1f }}%`, `{{ table:budget }}` for the whole table with derived columns and total row. Add a format such as `| .1f` only to values that really have decimals, because `24.0억 원` reads as a typo for `24억 원`. Formulas allow arithmetic, `sum avg min max abs round len growth share approx`, `table.column`, `table.column['row']` and `table['column name']`; nothing else is evaluated.
43
-
44
- `python3 "$OFFICE/office_data.py" check report.md` prints every computed value and check before conversion. Quote numbers in the reply from that output, and deliver the data file and CSVs with the document, since they are how a reader reruns the numbers. A short memo with two figures needs no data file.
45
-
46
- ## 3. Conversion and the Korean conventions
47
-
48
- - The tonality comes from the frontmatter (`tonality:`); `--tonality`, `--density`, `--variance` override it (a direction strip uses this). `--publisher <profile>` (elsevier, acs, ieee, nature, korean-generic) and `--template <file.docx>` exclude `--tonality` and exclude each other. `--registry <file>` points at an edited registry. `--locale auto|en|ko|mixed` forces the language detection.
49
- - Korean documents: an ISO date is rewritten as `2026. 6. 30.` (frontmatter too); a table caption `표 1. 제목` prints as `<표 1> 제목` above the table; a unit shared by the number columns moves to a right-aligned `(단위: 억 원)` line; `주:` and `출처:` lines print under the table (`자료:` for the source); figures read `[그림 1]`; bullets are plain dashes; Hangul is emphasised by weight and stays upright. Word breaks Hangul between words and a LibreOffice preview breaks between syllables, which is expected.
50
- - Pretendard is set for Hangul and Latin (Journal keeps Times New Roman for Latin body text). The fonts are not embedded, so the preview is true where Pretendard is installed (`fc-list` lists families); the reply says so when the renderer substituted a face.
51
- - Figures: `![그림 1. <caption> (출처: <source>)](path.png)` with the image beside the Markdown file.
52
-
53
- ## 4. The gate in groups
54
-
55
- `python3 "$SKILL_ROOT/scripts/qa_docx.py" report.docx --source report.md --layout --kind report` must exit 0; `--tonality` names the tonality when the source frontmatter does not, `--publisher <profile>` applies a profile, `--compare other.docx` adds `tonality.structure`.
56
-
57
- | Group | Checks (ids in `references/page-composition.md`) |
58
- | --- | --- |
59
- | Page fill and flow | `fill.page`, `memo.fit`, `page.spill` |
60
- | Splits | `list.split`, `heading.column`, `columns.balance`, `heading.apart`, `heading.stranded` |
61
- | Tables, boxes, figures | `table.split`, `figure.split` |
62
- | Headings and furniture | `heading.wrap`, `title.lines`, `folio.total`, `sidebar.overlap`, `component.variety` |
63
- | Restraint on a tonality document | `color.accent-kinds`, `heading.ink`, `heading.ratio`, `table.fill`, `component.budget`, `cover.block`, `furniture.chip`, `date.iso` |
64
- | Structural (always runs) | `heading.declarative`, `heading.order`, `notice.dash` |
65
- | Package and content | OOXML integrity, every source heading reached the document, no `[blank]`, `XXX` or `TBD`, no frontmatter leaked into the body |
66
- | Prose lint | AI-tell phrases, hedge pile-ups, stock openers and closers, adjective stacks, Korean rules (`--kind report` leaves out the journal-outline rules) |
67
- | Design audit | banned fonts, profile margins, booktabs tables, highlights, tracked changes, ASCII ellipsis, Hangul runs without the Pretendard east-Asian pairing, right-aligned numeric columns (OF-302); body lines above 90 characters, 38 for Korean, as the advisory OF-301 |
68
-
69
- Without `soffice` the page checks are reported as not run and the reply says so. A fix goes into the Markdown followed by a reconvert; the gate stays as it is. For a manuscript also run `python3 "$SKILL_ROOT/scripts/slop_lint.py" draft.md --publisher <profile> --report lint.md` (add `--kind report` to skip the manuscript-only rules) for the full report and the submission checklist.
70
-
71
- ## 5. The look step
72
-
73
- ```bash
74
- python3 "$SKILL_ROOT/scripts/visual_audit.py" report.docx --out-dir renders --pages 3
75
- ```
76
-
77
- It writes a PDF and `page-NN.png` files through `soffice` (`--dpi` defaults to 110). Open each PNG with `read_file`. The questions: does the cover or title block read at once, is the heading rhythm even, does the callout hold the decision, does each key figure show its basis, do Korean glyphs render, do table rules, page breaks and figures sit where the composition notes say, and does the direction still fit now that pages exist (the card's "wrong if" line)? Three rounds is the budget; a surviving defect goes into the reply with its page number. Use `nice -n 10` for long renders.
78
-
79
- ## 6. Other workflows
80
-
81
- - **DOCX to Markdown.** `pandoc in.docx -f docx -t gfm --wrap=none --extract-media=media --markdown-headings=atx -o draft.md` (add `--track-changes=all` for tracked changes), then `python3 "$SKILL_ROOT/scripts/clean_markdown.py" draft.md clean.md`, then review against `references/markdown_quality_checklist.md`. `python3 "$SKILL_ROOT/scripts/embed_images.py" clean.md inline.md --root media` makes the result self-contained. List what the conversion dropped (footnotes, text boxes, equations, comments, images) when it matters. A missing pandoc is `BLOCKED` for DOCX input only.
82
- - **PDF to Markdown.** `python3 "$SKILL_ROOT/scripts/convert_pdf.py" in.pdf out.md` handles multi-column layouts, paragraph merging and header and footer removal. Check the reading order of two-column pages against the page images.
83
- - **Edit a .docx.** `python3 "$SKILL_ROOT/scripts/edit_docx.py" in.docx --replace "OLD" "NEW" -o out.docx` (add `--case-insensitive`), `--append-md extra.md`, `--insert-at "{{MARKER}}" "text"`, `--extract-text`, `--show-structure`. The output is a new file and the original stays untouched unless the user asks. Afterwards extract the text of both files and confirm only the intended paragraphs changed.
84
- - **Publisher PDF.** `python3 "$SKILL_ROOT/scripts/convert_md_to_pdf.py" draft.md out.pdf --publisher <profile>` checks pandoc, xelatex and the class file first and exits with an install hint instead of failing halfway (`--submission` and `--draft` select the mode). When either tool is missing, offer the DOCX rendered to PDF through `soffice`: `python3 "$OFFICE/render_pages.py" report.docx --out-dir renders --pages 1` writes `<stem>.pdf` there.
85
- - **New or changed publisher profile.** Edit a copy of `templates/registry.yaml`, run `python3 "$SKILL_ROOT/scripts/generate_docx_templates.py" --registry my-registry.yaml --out-dir my-templates`, and pass `--registry` to the converter and the linter. Regenerating into the installed skill is out of bounds.
86
-
87
- ## 7. Evidence layout
88
-
89
- | File under `.litgravity/evidence/<slug>/` | Content |
90
- | --- | --- |
91
- | `gate.txt` | the last `qa_docx.py` output with its exit code |
92
- | `office-status.txt` | the runtime `status` output |
93
- | `pages.md` | one line per page opened and what it showed, including the "wrong if" verdict |
94
- | `lint.md` | the lint report for a manuscript |
95
-
96
- Ledger lines: a `decision` line for the direction card and an `evidence` line per artifact (`{ts, kind, text, path?}` appended to `.litgravity/ledger/<conversation-id>.jsonl`).