@litfamily/litcodex 1.0.30 → 1.0.31

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 (376) hide show
  1. package/README-Ko-KR.md +11 -11
  2. package/README.md +11 -11
  3. package/dist/install/generated-skill-payload-hashes.d.ts +188 -82
  4. package/dist/install/generated-skill-payload-hashes.js +188 -82
  5. package/dist/install/skill-catalog.d.ts +1 -1
  6. package/dist/install/skill-catalog.js +12 -1
  7. package/dist/install/skill-resource-hashes.d.ts +1 -1
  8. package/dist/install/skill-resource-hashes.js +1 -1
  9. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  10. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  11. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  12. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  13. package/marketplace/plugins/litcodex/components/lit-loop/directive.md +10 -4
  14. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-adhd.md +191 -0
  15. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-handoff.md +2 -0
  16. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-hijack.md +219 -0
  17. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-recap.md +2 -0
  18. package/marketplace/plugins/litcodex/components/lit-loop/directives/lit-schematic.md +199 -0
  19. package/marketplace/plugins/litcodex/components/lit-loop/directives/litwork.md +2 -1
  20. package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.d.ts +10 -0
  21. package/marketplace/plugins/litcodex/components/lit-loop/dist/adhd-suggest.js +67 -0
  22. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.d.ts +1 -1
  23. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-html.js +128 -8
  24. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.d.ts +19 -0
  25. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-looks.js +58 -0
  26. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.d.ts +27 -0
  27. package/marketplace/plugins/litcodex/components/lit-loop/dist/card-status.js +94 -7
  28. package/marketplace/plugins/litcodex/components/lit-loop/dist/cli.js +13 -3
  29. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.d.ts +2 -0
  30. package/marketplace/plugins/litcodex/components/lit-loop/dist/codex-hook.js +8 -9
  31. package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.d.ts +5 -0
  32. package/marketplace/plugins/litcodex/components/lit-loop/dist/control-chars.js +23 -0
  33. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.d.ts +8 -0
  34. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +118 -11
  35. package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.d.ts +1 -1
  36. package/marketplace/plugins/litcodex/components/lit-loop/dist/hud.js +29 -13
  37. package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.d.ts +13 -0
  38. package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-events.js +85 -0
  39. package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.d.ts +55 -0
  40. package/marketplace/plugins/litcodex/components/lit-loop/dist/lane-state.js +227 -0
  41. package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.d.ts +5 -1
  42. package/marketplace/plugins/litcodex/components/lit-loop/dist/live-step.js +17 -1
  43. package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.d.ts +6 -0
  44. package/marketplace/plugins/litcodex/components/lit-loop/dist/markers.js +6 -0
  45. package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.d.ts +1 -1
  46. package/marketplace/plugins/litcodex/components/lit-loop/dist/modes.js +25 -1
  47. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.d.ts +79 -0
  48. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-gate.js +310 -0
  49. package/marketplace/plugins/litcodex/components/lit-loop/dist/motion-route.js +5 -1
  50. package/marketplace/plugins/litcodex/components/lit-loop/dist/plan-persistence.js +10 -0
  51. package/marketplace/plugins/litcodex/components/lit-loop/dist/redaction.js +18 -0
  52. package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.d.ts +15 -0
  53. package/marketplace/plugins/litcodex/components/lit-loop/dist/reentry.js +46 -9
  54. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.d.ts +10 -0
  55. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-cli.js +88 -0
  56. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.d.ts +20 -0
  57. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.js +84 -0
  58. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.d.ts +6 -0
  59. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-look.js +41 -0
  60. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.d.ts +3 -0
  61. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-redact.js +40 -0
  62. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.d.ts +48 -0
  63. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-rollout.js +292 -0
  64. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.d.ts +162 -0
  65. package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.js +773 -0
  66. package/marketplace/plugins/litcodex/components/lit-loop/dist/route-heads.js +44 -2
  67. package/marketplace/plugins/litcodex/components/lit-loop/dist/run-panel.js +1 -0
  68. package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.d.ts +6 -0
  69. package/marketplace/plugins/litcodex/components/lit-loop/dist/schematic-route.js +35 -0
  70. package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.d.ts +3 -0
  71. package/marketplace/plugins/litcodex/components/lit-loop/dist/screen-card.js +15 -5
  72. package/marketplace/plugins/litcodex/components/lit-loop/dist/skill-mention-scope.js +6 -0
  73. package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.d.ts +8 -0
  74. package/marketplace/plugins/litcodex/components/lit-loop/dist/stack-hook.js +57 -0
  75. package/marketplace/plugins/litcodex/components/lit-loop/dist/statusline.js +8 -3
  76. package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.d.ts +50 -0
  77. package/marketplace/plugins/litcodex/components/lit-loop/dist/threads.js +178 -0
  78. package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.d.ts +1 -1
  79. package/marketplace/plugins/litcodex/components/lit-loop/dist/trigger.js +29 -5
  80. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.d.ts +10 -0
  81. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.js +11 -1
  82. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.d.ts +132 -0
  83. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-stack.js +488 -0
  84. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  85. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  86. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  87. package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.d.ts +6 -0
  88. package/marketplace/plugins/litcodex/components/start-work-continuation/dist/codex-hook.js +65 -0
  89. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  90. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  91. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  92. package/marketplace/plugins/litcodex/hooks/hooks.json +24 -0
  93. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/SKILL.md +6 -0
  94. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/components.css +414 -0
  95. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/fonts.json +22 -0
  96. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
  97. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
  98. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
  99. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
  100. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
  101. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
  102. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
  103. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
  104. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/kit/ui.js +228 -0
  105. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/brand-and-imagery.md +1 -1
  106. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/complete-contract.md +1 -0
  107. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/craft-floor.md +2 -2
  108. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/default-editorial-pixel.json +15 -8
  109. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/design-choice.md +19 -0
  110. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/house-styles.md +235 -0
  111. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/motion-guide.md +2 -2
  112. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/probe-and-review.md +6 -0
  113. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/production-interview.md +2 -0
  114. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/references/slop-register.md +4 -4
  115. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
  116. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/lock-probe.mjs +196 -0
  117. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/page-probe.mjs +22 -4
  118. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
  119. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/probe.mjs +59 -13
  120. package/marketplace/plugins/litcodex/skills/frontend-ui-ux/scripts/rule-data.mjs +38 -4
  121. package/marketplace/plugins/litcodex/skills/lit-adhd/SKILL.md +181 -0
  122. package/marketplace/plugins/litcodex/skills/lit-adhd/agents/openai.yaml +6 -0
  123. package/marketplace/plugins/litcodex/skills/lit-adhd/references/card-examples.md +147 -0
  124. package/marketplace/plugins/litcodex/skills/lit-adhd/references/status-taxonomy.md +37 -0
  125. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/SKILL.md +18 -7
  126. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/style-guide.md +20 -11
  127. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
  128. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
  129. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-swimlane.md +1 -1
  130. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +1 -1
  131. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-tree.md +3 -3
  132. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
  133. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/references/verifier-guide.md +1 -0
  134. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
  135. package/marketplace/plugins/litcodex/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
  136. package/marketplace/plugins/litcodex/skills/lit-docx/SKILL.md +12 -3
  137. package/marketplace/plugins/litcodex/skills/lit-docx/references/direction-step.md +6 -3
  138. package/marketplace/plugins/litcodex/skills/lit-hijack/SKILL.md +449 -0
  139. package/marketplace/plugins/litcodex/skills/lit-hijack/agents/openai.yaml +6 -0
  140. package/marketplace/plugins/litcodex/skills/lit-hijack/references/capture-and-provenance.md +100 -0
  141. package/marketplace/plugins/litcodex/skills/lit-hijack/references/clean-room-build.md +111 -0
  142. package/marketplace/plugins/litcodex/skills/lit-hijack/references/distil-and-licence.md +102 -0
  143. package/marketplace/plugins/litcodex/skills/lit-hijack/references/gap-and-port-design.md +125 -0
  144. package/marketplace/plugins/litcodex/skills/lit-hijack/references/parity-and-report.md +108 -0
  145. package/marketplace/plugins/litcodex/skills/lit-hijack/scripts/hijack.mjs +1050 -0
  146. package/marketplace/plugins/litcodex/skills/lit-loop/SKILL.md +13 -4
  147. package/marketplace/plugins/litcodex/skills/lit-plan/SKILL.md +6 -0
  148. package/marketplace/plugins/litcodex/skills/lit-pptx/NOTICE +1 -0
  149. package/marketplace/plugins/litcodex/skills/lit-pptx/SKILL.md +35 -8
  150. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  151. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  152. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
  153. package/marketplace/plugins/litcodex/skills/lit-pptx/fonts/jetbrains-mono/SOURCE.md +21 -0
  154. package/marketplace/plugins/litcodex/skills/lit-pptx/references/anti-slop-checklist.md +5 -2
  155. package/marketplace/plugins/litcodex/skills/lit-pptx/references/authoring-guide.md +3 -4
  156. package/marketplace/plugins/litcodex/skills/lit-pptx/references/density-and-fill.md +20 -6
  157. package/marketplace/plugins/litcodex/skills/lit-pptx/references/direction-step.md +26 -8
  158. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/14-engineering-review-computational-brutalism-ko.md +173 -0
  159. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/15-launch-pitch-neo-brutalism-ko.md +154 -0
  160. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/16-design-lecture-bauhaus-ko.md +139 -0
  161. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/17-community-programme-riso-ko.md +158 -0
  162. package/marketplace/plugins/litcodex/skills/lit-pptx/references/examples/18-public-data-briefing-newsroom-ko.md +179 -0
  163. package/marketplace/plugins/litcodex/skills/lit-pptx/references/layout-families.md +42 -27
  164. package/marketplace/plugins/litcodex/skills/lit-pptx/references/title-treatments.md +31 -27
  165. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/bauhaus.md +136 -0
  166. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/chalk.md +1 -1
  167. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/computational-brutalism.md +145 -0
  168. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/neo-brutalism.md +155 -0
  169. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/newsroom.md +141 -0
  170. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/riso.md +133 -0
  171. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/signal.md +1 -1
  172. package/marketplace/plugins/litcodex/skills/lit-pptx/references/tonalities/studio.md +1 -1
  173. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/compile-deck.js +1 -1
  174. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/craft_extras.py +136 -94
  175. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/embed_fonts.py +13 -1
  176. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
  177. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
  178. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/render-pack.js +386 -579
  179. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
  180. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
  181. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/office-run.mjs +2 -1
  182. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/qa_deck.py +7 -13
  183. package/marketplace/plugins/litcodex/skills/lit-pptx/scripts/render_pages.py +124 -0
  184. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
  185. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
  186. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
  187. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +100 -0
  188. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
  189. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
  190. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
  191. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
  192. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
  193. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
  194. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
  195. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
  196. package/marketplace/plugins/litcodex/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
  197. package/marketplace/plugins/litcodex/skills/lit-recap/SKILL.md +2 -0
  198. package/marketplace/plugins/litcodex/skills/lit-schematic/SKILL.md +198 -0
  199. package/marketplace/plugins/litcodex/skills/lit-schematic/agents/openai.yaml +6 -0
  200. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
  201. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
  202. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
  203. package/marketplace/plugins/litcodex/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
  204. package/marketplace/plugins/litcodex/skills/lit-schematic/references/cutaway-outputs.md +70 -0
  205. package/marketplace/plugins/litcodex/skills/lit-schematic/references/isometric-craft.md +101 -0
  206. package/marketplace/plugins/litcodex/skills/lit-schematic/references/journal-figures.md +72 -0
  207. package/marketplace/plugins/litcodex/skills/lit-schematic/references/kit-api.md +134 -0
  208. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pfd-and-layout.md +53 -0
  209. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-drafting.md +103 -0
  210. package/marketplace/plugins/litcodex/skills/lit-schematic/references/pid-symbols.md +163 -0
  211. package/marketplace/plugins/litcodex/skills/lit-schematic/references/verification.md +100 -0
  212. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/doctor.mjs +57 -0
  213. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
  214. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/fonts.mjs +28 -0
  215. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
  216. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
  217. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
  218. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
  219. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
  220. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
  221. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/png.mjs +132 -0
  222. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
  223. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/route.mjs +218 -0
  224. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
  225. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
  226. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
  227. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/motion.mjs +129 -0
  228. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/qa.mjs +92 -0
  229. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/render.mjs +233 -0
  230. package/marketplace/plugins/litcodex/skills/lit-schematic/scripts/scaffold.mjs +60 -0
  231. package/marketplace/plugins/litcodex/skills/lit-scientific-visualization/SKILL.md +34 -8
  232. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/SKILL.md +18 -14
  233. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +12 -0
  234. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/assets.mjs +388 -0
  235. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender/runner.py +221 -0
  236. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/blender.mjs +132 -0
  237. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/board.mjs +142 -0
  238. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/constants.mjs +6 -0
  239. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-assets.mjs +7 -4
  240. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-capture.mjs +8 -7
  241. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-init.js +14 -2
  242. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover-treatment.mjs +38 -3
  243. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/cover.mjs +19 -4
  244. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/driver.mjs +8 -8
  245. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/gallery.mjs +147 -0
  246. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/house.mjs +45 -0
  247. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/image.mjs +89 -0
  248. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/look.mjs +58 -25
  249. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/runtime.mjs +59 -14
  250. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/safe-read.mjs +32 -0
  251. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/scaffold.mjs +208 -0
  252. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/score.mjs +668 -0
  253. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/sound.mjs +174 -31
  254. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-gate.mjs +45 -3
  255. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-kit.js +99 -1
  256. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.js +8 -1
  257. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-qa.mjs +180 -11
  258. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-render.mjs +42 -12
  259. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage-worker.mjs +7 -4
  260. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/stage.mjs +96 -10
  261. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/styles.mjs +233 -0
  262. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/treatment.mjs +291 -14
  263. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
  264. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
  265. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
  266. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
  267. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/expected.json +33 -0
  268. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
  269. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/cover.md +44 -7
  270. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/depth.md +156 -0
  271. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/design-choice.md +22 -0
  272. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/quality-gate.md +29 -7
  273. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/runtime.md +1 -1
  274. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/sound.md +87 -0
  275. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/stage.md +19 -7
  276. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/studio.md +246 -0
  277. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/style-bibles.md +2 -2
  278. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/references/treatment.md +41 -21
  279. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/scripts/render.mjs +51 -4
  280. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/paper.json +185 -0
  281. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/swiss-signal.json +188 -0
  282. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/terminalcore.json +182 -0
  283. package/marketplace/plugins/litcodex/skills/lit-typographic-motion/styles/tidal.json +187 -0
  284. package/marketplace/plugins/litcodex/skills/litresearch/SKILL.md +7 -0
  285. package/marketplace/plugins/litcodex/skills/litwork/SKILL.md +2 -1
  286. package/marketplace/plugins/litcodex/skills/readme-studio/SKILL.md +10 -0
  287. package/marketplace/plugins/litcodex/skills/review-work/SKILL.md +7 -1
  288. package/marketplace/plugins/litcodex/skills/start-work/SKILL.md +10 -0
  289. package/node_modules/@litcodex/lit-loop/directive.md +10 -4
  290. package/node_modules/@litcodex/lit-loop/directives/lit-adhd.md +191 -0
  291. package/node_modules/@litcodex/lit-loop/directives/lit-handoff.md +2 -0
  292. package/node_modules/@litcodex/lit-loop/directives/lit-hijack.md +219 -0
  293. package/node_modules/@litcodex/lit-loop/directives/lit-recap.md +2 -0
  294. package/node_modules/@litcodex/lit-loop/directives/lit-schematic.md +199 -0
  295. package/node_modules/@litcodex/lit-loop/directives/litwork.md +2 -1
  296. package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.d.ts +10 -0
  297. package/node_modules/@litcodex/lit-loop/dist/adhd-suggest.js +67 -0
  298. package/node_modules/@litcodex/lit-loop/dist/card-html.d.ts +1 -1
  299. package/node_modules/@litcodex/lit-loop/dist/card-html.js +128 -8
  300. package/node_modules/@litcodex/lit-loop/dist/card-looks.d.ts +19 -0
  301. package/node_modules/@litcodex/lit-loop/dist/card-looks.js +58 -0
  302. package/node_modules/@litcodex/lit-loop/dist/card-status.d.ts +27 -0
  303. package/node_modules/@litcodex/lit-loop/dist/card-status.js +94 -7
  304. package/node_modules/@litcodex/lit-loop/dist/cli.js +13 -3
  305. package/node_modules/@litcodex/lit-loop/dist/codex-hook.d.ts +2 -0
  306. package/node_modules/@litcodex/lit-loop/dist/codex-hook.js +8 -9
  307. package/node_modules/@litcodex/lit-loop/dist/control-chars.d.ts +5 -0
  308. package/node_modules/@litcodex/lit-loop/dist/control-chars.js +23 -0
  309. package/node_modules/@litcodex/lit-loop/dist/hook-cli.d.ts +8 -0
  310. package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +118 -11
  311. package/node_modules/@litcodex/lit-loop/dist/hud.d.ts +1 -1
  312. package/node_modules/@litcodex/lit-loop/dist/hud.js +29 -13
  313. package/node_modules/@litcodex/lit-loop/dist/lane-events.d.ts +13 -0
  314. package/node_modules/@litcodex/lit-loop/dist/lane-events.js +85 -0
  315. package/node_modules/@litcodex/lit-loop/dist/lane-state.d.ts +55 -0
  316. package/node_modules/@litcodex/lit-loop/dist/lane-state.js +227 -0
  317. package/node_modules/@litcodex/lit-loop/dist/live-step.d.ts +5 -1
  318. package/node_modules/@litcodex/lit-loop/dist/live-step.js +17 -1
  319. package/node_modules/@litcodex/lit-loop/dist/markers.d.ts +6 -0
  320. package/node_modules/@litcodex/lit-loop/dist/markers.js +6 -0
  321. package/node_modules/@litcodex/lit-loop/dist/modes.d.ts +1 -1
  322. package/node_modules/@litcodex/lit-loop/dist/modes.js +25 -1
  323. package/node_modules/@litcodex/lit-loop/dist/motion-gate.d.ts +79 -0
  324. package/node_modules/@litcodex/lit-loop/dist/motion-gate.js +310 -0
  325. package/node_modules/@litcodex/lit-loop/dist/motion-route.js +5 -1
  326. package/node_modules/@litcodex/lit-loop/dist/plan-persistence.js +10 -0
  327. package/node_modules/@litcodex/lit-loop/dist/redaction.js +18 -0
  328. package/node_modules/@litcodex/lit-loop/dist/reentry.d.ts +15 -0
  329. package/node_modules/@litcodex/lit-loop/dist/reentry.js +46 -9
  330. package/node_modules/@litcodex/lit-loop/dist/rewind-cli.d.ts +10 -0
  331. package/node_modules/@litcodex/lit-loop/dist/rewind-cli.js +88 -0
  332. package/node_modules/@litcodex/lit-loop/dist/rewind-go.d.ts +20 -0
  333. package/node_modules/@litcodex/lit-loop/dist/rewind-go.js +84 -0
  334. package/node_modules/@litcodex/lit-loop/dist/rewind-look.d.ts +6 -0
  335. package/node_modules/@litcodex/lit-loop/dist/rewind-look.js +41 -0
  336. package/node_modules/@litcodex/lit-loop/dist/rewind-redact.d.ts +3 -0
  337. package/node_modules/@litcodex/lit-loop/dist/rewind-redact.js +40 -0
  338. package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.d.ts +48 -0
  339. package/node_modules/@litcodex/lit-loop/dist/rewind-rollout.js +292 -0
  340. package/node_modules/@litcodex/lit-loop/dist/rewind.d.ts +162 -0
  341. package/node_modules/@litcodex/lit-loop/dist/rewind.js +773 -0
  342. package/node_modules/@litcodex/lit-loop/dist/route-heads.js +44 -2
  343. package/node_modules/@litcodex/lit-loop/dist/run-panel.js +1 -0
  344. package/node_modules/@litcodex/lit-loop/dist/schematic-route.d.ts +6 -0
  345. package/node_modules/@litcodex/lit-loop/dist/schematic-route.js +35 -0
  346. package/node_modules/@litcodex/lit-loop/dist/screen-card.d.ts +3 -0
  347. package/node_modules/@litcodex/lit-loop/dist/screen-card.js +15 -5
  348. package/node_modules/@litcodex/lit-loop/dist/skill-mention-scope.js +6 -0
  349. package/node_modules/@litcodex/lit-loop/dist/stack-hook.d.ts +8 -0
  350. package/node_modules/@litcodex/lit-loop/dist/stack-hook.js +57 -0
  351. package/node_modules/@litcodex/lit-loop/dist/statusline.js +8 -3
  352. package/node_modules/@litcodex/lit-loop/dist/threads.d.ts +50 -0
  353. package/node_modules/@litcodex/lit-loop/dist/threads.js +178 -0
  354. package/node_modules/@litcodex/lit-loop/dist/trigger.d.ts +1 -1
  355. package/node_modules/@litcodex/lit-loop/dist/trigger.js +29 -5
  356. package/node_modules/@litcodex/lit-loop/dist/workflow-map.d.ts +10 -0
  357. package/node_modules/@litcodex/lit-loop/dist/workflow-map.js +11 -1
  358. package/node_modules/@litcodex/lit-loop/dist/workflow-stack.d.ts +132 -0
  359. package/node_modules/@litcodex/lit-loop/dist/workflow-stack.js +488 -0
  360. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  361. package/node_modules/@litcodex/lit-loop/skills/lit-adhd/SKILL.md +181 -0
  362. package/node_modules/@litcodex/lit-loop/skills/lit-hijack/SKILL.md +449 -0
  363. package/node_modules/@litcodex/lit-loop/skills/lit-loop/SKILL.md +13 -4
  364. package/node_modules/@litcodex/lit-loop/skills/lit-plan/SKILL.md +6 -0
  365. package/node_modules/@litcodex/lit-loop/skills/lit-recap/SKILL.md +2 -0
  366. package/node_modules/@litcodex/lit-loop/skills/lit-schematic/SKILL.md +198 -0
  367. package/node_modules/@litcodex/lit-loop/skills/lit-scientific-visualization/SKILL.md +34 -8
  368. package/node_modules/@litcodex/lit-loop/skills/litresearch/SKILL.md +7 -0
  369. package/node_modules/@litcodex/lit-loop/skills/litwork/SKILL.md +2 -1
  370. package/node_modules/@litcodex/lit-loop/skills/review-work/SKILL.md +7 -1
  371. package/node_modules/@litcodex/lit-loop/skills/start-work/SKILL.md +10 -0
  372. package/package.json +2 -2
  373. package/readme-assets/badge-version.svg +1 -1
  374. package/readme-assets/skills/lit-adhd.webp +0 -0
  375. package/readme-assets/skills/lit-hijack.webp +0 -0
  376. package/readme-assets/skills/lit-schematic.webp +0 -0
@@ -2,14 +2,20 @@
2
2
 
3
3
  OF-101..OF-109 judge each slide. OF-110..OF-115 judge the output of a tonality pack as a whole:
4
4
  how many title treatments the deck shows, whether its layouts vary, whether bodies are used,
5
- whether each treatment keeps one frame, whether titles are labels rather than sentences, and
6
- whether a region stands empty beside a full one (the floor under a bottom title, a side rail,
7
- a takeaway column, a title panel, the page above a plate). OF-116 compares the deck with
8
- another tonality of the same source (qa_deck.py --sibling), OF-117 fails a light figure
9
- card on a dark ground, OF-118 a bold run-in label with no separator after it, and OF-119 a count
10
- numeral beside an agenda's title. A pack deck carries its own marks (the subject stamp, `family@` and
11
- `title@` shape names); a deck without them is judged by OF-101..OF-109 and OF-117 alone. The
12
- limits live here so spec revisions change data rather than scattered checks.
5
+ whether every title sits on the shared slide grid's title frame, whether titles are labels rather
6
+ than sentences, and whether a region stands empty beside a full one (a takeaway column, a title
7
+ panel, the page above a plate). OF-116 compares the deck with another tonality of the same source
8
+ (qa_deck.py --sibling): titles and bodies must stand in the same places. OF-117 fails a light
9
+ figure card on a dark ground, OF-118 a bold run-in label with no separator after it, OF-119 a count
10
+ numeral beside an agenda's title, and OF-120 a hard offset shadow in a pack that does not draw one.
11
+ A pack deck carries its own marks (the subject stamp, `family@` and `title@` shape names); a deck
12
+ without them is judged by OF-101..OF-109, OF-117 and OF-120 alone. The limits live here so spec
13
+ revisions change data rather than scattered checks.
14
+
15
+ OF-101 fails a slide at five accent hue families; four are a rich slide. A tonality pack may widen
16
+ the limit through its own `qa:` block (`accent-families`, `display-accent-families`: five or six) and
17
+ allow hard offset shadows (`offset-shadow`); the gate finds the pack through the deck's tonality stamp
18
+ and a deck without a stamp keeps the defaults.
13
19
  """
14
20
  from __future__ import annotations
15
21
 
@@ -32,6 +38,7 @@ OF_LIMITS = {
32
38
  "frame_inset_tolerance_in": .06, "frame_radius_tolerance_in": .02,
33
39
  "frame_outer_radius_min_in": .04, "group_ratio": 2,
34
40
  "empty_medium": .25, "empty_high": .35, "row_tolerance_in": .05,
41
+ "accent_families": 5,
35
42
  }
36
43
  # OF-110..OF-113 read geometry in points, the unit of the design spec's treatment frames.
37
44
  OUTPUT_LIMITS = {
@@ -39,18 +46,18 @@ OUTPUT_LIMITS = {
39
46
  "variety_cap": 5, "max_share": .40, "band_floor": 486.0, "footer_top": 492.0, "band_deck_max": .20,
40
47
  "band_caps": ((2, .28), (4, .24), (6, .20), (8, .16), (10, .12)), "anchor_tol": 1.0,
41
48
  }
42
- # OF-115: a region is empty past 40 % of its own height; a bottom title may end at most 12 pt above the floor.
43
- REGION_LIMITS = {"floor_gap": 12.0, "share": .40}
49
+ # OF-115: a region is empty past 40 % of its own height.
50
+ REGION_LIMITS = {"share": .40}
44
51
  # OF-117: on a ground darker than this luminance, a picture more than half near-white is a light card.
45
52
  FIGURE_LIMITS = {"ground_max": .25, "near_white": 235, "share": .5, "min_area": .03}
46
53
  TREATMENTS = ("top-rule", "top-plain-large", "side-rail", "band", "statement", "overlay", "kicker-numeral", "bottom-anchor")
47
- TITLE_ZONE = {"top-rule": "top", "top-plain-large": "top", "kicker-numeral": "top", "side-rail": "side",
48
- "band": "band", "overlay": "overlay", "bottom-anchor": "bottom", "statement": "none"}
49
- # Widest four-column title and the earliest column-5 start, per canvas width in points.
50
- RAIL = {960: (288.0, 336.0), 720: (216.0, 252.0)}
54
+ # Every content treatment styles the one shared title frame (slide-grid.js), so a slide's title "zone" in the
55
+ # composition signature is its treatment: the look varies, the place does not.
56
+ TITLE_ZONE = {t: t for t in TREATMENTS}
51
57
  GRID_MARGIN = {960: {"airy": 60.0, "standard": 48.0, "dense": 36.0, "compact": 24.0},
52
58
  720: {"airy": 54.0, "standard": 42.0, "dense": 30.0, "compact": 24.0}}
53
59
  PACK_STAMP = re.compile(r"\blit-pptx tonality=(\S+) density=(\d+) grid=(\w+) variance=(\d+)")
60
+ QA_KEY = re.compile(r"^ ([a-z-]+):\s*(\S+)\s*$")
54
61
  NUMERAL = re.compile(r"\d+(?:[.:/-]\d+)?\.?")
55
62
  # Families the engine draws as display pages: covers, sections, statements, quotes, full pictures.
56
63
  DISPLAY_FAMILY = re.compile(r"^(?:cover|section)(?:-|$)|^(?:statement|quote|closing-statement|image-full)$")
@@ -120,12 +127,49 @@ def _gap_fraction(boxes, top, bottom):
120
127
  return max(gaps) / (bottom - top)
121
128
 
122
129
 
130
+ def pack_allowances(prs):
131
+ """The stamped tonality pack's `qa:` block as {key: int or bool}; empty without a stamp or a block."""
132
+ stamp = PACK_STAMP.search(prs.core_properties.subject or "")
133
+ if not stamp or not re.fullmatch(r"[a-z][a-z0-9-]*", stamp.group(1)):
134
+ return {}
135
+ path = Path(__file__).resolve().parent.parent / "templates" / "tonalities" / stamp.group(1) / "pack.yaml"
136
+ if not path.is_file():
137
+ return {}
138
+ allowed, inside = {}, False
139
+ for line in path.read_text(encoding="utf-8").splitlines():
140
+ if not line.strip() or line.lstrip().startswith("#"):
141
+ continue
142
+ if not line.startswith(" "):
143
+ inside = line.rstrip() == "qa:"
144
+ continue
145
+ match = QA_KEY.match(line) if inside else None
146
+ if match:
147
+ value = match.group(2)
148
+ allowed[match.group(1)] = value == "true" if value in ("true", "false") else int(value) if value.isdigit() else value
149
+ return allowed
150
+
151
+
152
+ def check_shadows(sn, shape, allowed):
153
+ """OF-120: a hard offset shadow (blur 0) is a pack's look or nothing; a pack that has it keeps every shadow hard."""
154
+ found = []
155
+ for shadow in shape._element.xpath(".//a:outerShdw"):
156
+ hard = int(shadow.get("blurRad") or 0) == 0
157
+ if hard and not allowed.get("offset-shadow"):
158
+ _finding(found, "OF-120", "HIGH", sn, "hard offset shadow in a pack that does not draw one",
159
+ hint="Remove the shadow; only a pack whose qa block allows offset-shadow draws one.")
160
+ elif not hard and allowed.get("offset-shadow"):
161
+ _finding(found, "OF-120", "HIGH", sn, "soft shadow beside the pack's hard offset shadows",
162
+ hint="Draw the shadow with no blur at the pack's offset, or remove it.")
163
+ return found
164
+
165
+
123
166
  def analyze_craft(prs):
124
167
  """Return HIGH blockers and MEDIUM advisories; no render claims."""
125
168
  findings = []
126
169
  W, H = prs.slide_width / EMU, prs.slide_height / EMU
127
170
  stamp = PACK_STAMP.search(prs.core_properties.subject or "")
128
171
  margin = GRID_MARGIN[960 if round(W * 72) == 960 else 720].get(stamp.group(3), 48.0) / 72 if stamp else .5
172
+ allowed = pack_allowances(prs)
129
173
  for sn, slide in enumerate(prs.slides, 1):
130
174
  # The notice line and a lone quotation-mark ornament are furniture, not content.
131
175
  shapes = [s for s in slide.shapes if not s.name.startswith("lit-notice") and _text(s) not in QUOTE_GLYPHS]
@@ -158,10 +202,15 @@ def analyze_craft(prs):
158
202
  findings += light_figures(sn, slide, W * 72, H * 72)
159
203
  findings += check_run_ins(sn, slide)
160
204
  count = len(accents)
161
- if count >= (4 if display else 3):
162
- _finding(findings, "OF-101", "HIGH", sn, f"{count} accent families")
163
- elif count >= (3 if display else 2):
164
- _finding(findings, "OF-101", "MEDIUM", sn, f"{count} accent families")
205
+ # Four hue families are a rich slide, five fail. A pack's own limit only widens that: N pass, N + 1 fail,
206
+ # with no advisory step between.
207
+ limit = OF_LIMITS["accent_families"]
208
+ widened = allowed.get("display-accent-families" if display else "accent-families")
209
+ if isinstance(widened, int) and not isinstance(widened, bool):
210
+ limit = max(limit, widened + 1)
211
+ if count >= limit:
212
+ _finding(findings, "OF-101", "HIGH", sn, f"{count} accent families",
213
+ hint=f"Hold a slide to {limit - 1} accent hue families; fold the extra fills into a family the slide already uses.")
165
214
 
166
215
  for s in shapes:
167
216
  if getattr(s, "has_text_frame", False):
@@ -197,6 +246,7 @@ def analyze_craft(prs):
197
246
  _finding(findings, "OF-102", "MEDIUM", sn, f"{measure:.1f} chars/line")
198
247
  if s._element.xpath(".//a:effectLst/a:glow"):
199
248
  _finding(findings, "OF-107", "HIGH", sn, "glow effect")
249
+ findings += check_shadows(sn, s, allowed)
200
250
 
201
251
  if getattr(s, "has_table", False):
202
252
  table = s.table
@@ -266,12 +316,6 @@ def analyze_craft(prs):
266
316
  if not display:
267
317
  top = (_box(title)[1] + _box(title)[3] + .1) if title else .5
268
318
  left, bottom = 0, H - .55
269
- if title is not None and title.name == "title@side-rail":
270
- # Nothing sits under a side rail by design: the body is the column beside it, from the top.
271
- top, left = _box(title)[1], _box(title)[0] + _box(title)[2]
272
- elif title is not None and title.name == "title@bottom-anchor":
273
- # A bottom title closes the page: the body runs from the top margin down to it.
274
- top, bottom = margin, _box(title)[1]
275
319
  content = [_box(s) for s in shapes if s is not title and _box(s)[0] >= left - .05 and
276
320
  (_text(s) or s in cards or getattr(s, "has_table", False) or getattr(s, "has_chart", False)
277
321
  or s.shape_type == MSO_SHAPE_TYPE.PICTURE) and
@@ -335,7 +379,7 @@ def _drawn(slide, W, H):
335
379
  items = []
336
380
  for s in slide.shapes:
337
381
  box = _pt(s)
338
- if box is None or box[2] + box[3] <= 0 or s.name.startswith("lit-notice"):
382
+ if box is None or box[2] + box[3] <= 0 or s.name.startswith(("lit-notice", "grid-mark")):
339
383
  continue
340
384
  text = _text(s)
341
385
  if s.shape_type == MSO_SHAPE_TYPE.PICTURE:
@@ -398,23 +442,24 @@ def treatment_of(title, items, W, H):
398
442
  and not any(o["kind"] in ("table", "chart", "picture") or o["role"] == "card" for o in body)
399
443
  and sum(o["kind"] == "text" for o in body) <= 1):
400
444
  return "statement"
401
- if title["y"] >= 360 - tol and all(o["y"] <= title["y"] + tol for o in body if o["kind"] == "text"):
445
+ # Every content title stands on the one shared title frame, so a treatment is told by what is drawn with it.
446
+ content_w = W - 2 * title["x"]
447
+ drawn = [o for o in others if o["kind"] == "shape" and o["filled"]]
448
+ # A heavy rule across the columns that closes the title frame.
449
+ if any(2 - slack <= o["h"] <= 4 + slack and o["w"] >= .9 * content_w and bottom - tol <= o["y"] <= bottom + 8 for o in drawn):
402
450
  return "bottom-anchor"
403
- rail_w, column_5 = RAIL.get(round(W), RAIL[960])
404
- beside = [o for o in body if o["x"] + o["w"] / 2 > title["x"] + title["w"]]
405
- # Criteria labels, takeaways and the source may stand in the rail under the title; only a block that
406
- # runs from the rail into the body makes the title something else.
407
- if (title["w"] <= rail_w + tol and beside and min(o["x"] for o in beside) >= column_5 - tol
408
- and not any(o["x"] < column_5 - tol and o["y"] > bottom and o["x"] + o["w"] > column_5 + tol for o in body)):
451
+ # A bar in the left margin, at least as tall as the title frame.
452
+ if any(o["x"] <= 1 and o["w"] <= 14 and o["h"] >= title["h"] - tol and o["y"] <= title["y"] + tol
453
+ and o["y"] + o["h"] >= bottom - tol for o in drawn):
409
454
  return "side-rail"
410
455
  for o in others:
411
- if (o["kind"] == "text" and o["sizes"] and NUMERAL.fullmatch(o["text"]) and max(o["sizes"]) >= 44 - slack
412
- and o["x"] + o["w"] <= title["x"] + tol and o["y"] >= 30 - tol and o["y"] + o["h"] <= 114 + tol):
456
+ if (o["kind"] == "text" and o["sizes"] and NUMERAL.fullmatch(o["text"]) and max(o["sizes"]) >= 40 - slack
457
+ and o["x"] >= title["x"] + title["w"] - tol and o["y"] >= title["y"] - tol and o["y"] + o["h"] <= bottom + tol):
413
458
  return "kicker-numeral"
414
459
  if title["y"] <= 48 + tol:
415
460
  # A rule is a line under the title, never a list-marker dot.
416
461
  rule = any(o["kind"] == "shape" and o["h"] <= 8 and o["w"] >= max(16, 4 * o["h"])
417
- and bottom - tol <= o["y"] <= bottom + 24 and o["x"] < title["x"] + title["w"]
462
+ and title["y"] < o["y"] <= bottom + 24 and o["x"] < title["x"] + title["w"]
418
463
  and o["x"] + o["w"] > title["x"] for o in others)
419
464
  if size >= 36 - slack and not rule:
420
465
  return "top-plain-large"
@@ -440,13 +485,12 @@ def signature_of(title, treatment, items, W, margin):
440
485
  zone = TITLE_ZONE.get(treatment, "none")
441
486
  if treatment == "statement":
442
487
  return (zone, "one", "text")
443
- column_5 = RAIL.get(round(W), RAIL[960])[1]
444
488
  body = [o for o in items if o is not title and not _in_footer(o) and o["role"] != "decoration"
445
- # what stands in a side title's rail belongs to the title zone, not to the body's columns
446
- and not (treatment == "side-rail" and o["x"] + o["w"] <= column_5 + OUTPUT_LIMITS["tol"])
447
489
  and not (o["kind"] == "shape" and title is not None and _inside(title, o, 0))
448
- and not (treatment == "kicker-numeral" and o["kind"] == "text" and NUMERAL.fullmatch(o["text"])
449
- and o["y"] + o["h"] <= 116)]
490
+ # a numeral or header mark belongs to the title zone, and a one-line caption or source on the
491
+ # body floor is the slide's foot, not a column
492
+ and not o["name"].startswith(("numeral@", "header@"))
493
+ and not (o["kind"] == "text" and o["h"] <= 16 and o["y"] + o["h"] >= OUTPUT_LIMITS["band_floor"] - 2)]
450
494
  cards = [o for o in body if o["role"] == "card"]
451
495
  blocks = [o for o in body if not any(c is not o and _inside(o, c) for c in cards)]
452
496
  if any(o["kind"] == "picture" and o["w"] * o["h"] >= .8 * W * 540 for o in items):
@@ -600,37 +644,30 @@ def analyze_output(prs):
600
644
  if median > OUTPUT_LIMITS["band_deck_max"]:
601
645
  _finding(found, "OF-112", weight, None, f"median empty band {median:.2f} over {len(bands)} slides",
602
646
  hint="Give content slides content that reaches the floor: a takeaway under a table, a next step under an ask.")
647
+ # OF-113: every content title on one frame and every display title (a statement) on another, whatever its
648
+ # treatment: a treatment changes the look, never the place. A title over a full-bleed picture (overlay) keeps
649
+ # its own panel. Slides are grouped by the treatment they name, so a title moved so far that it no longer
650
+ # reads as any treatment is still measured.
603
651
  groups = {}
604
652
  for s in titled:
605
- if s["drawn"] in TREATMENTS and s["named"] in TREATMENTS:
606
- groups.setdefault(s["drawn"], []).append(s)
607
- # A statement is centred, so only its x and width repeat. A bottom title stands on the floor: its bottom
608
- # edge repeats and its top follows its line count.
609
- edge = lambda t, k: t["y"] + t["h"] if k == "bottom" else t[k] # noqa: E731
610
- for treatment, group in groups.items():
611
- keys = ("x", "w") if treatment == "statement" else ("x", "w", "bottom") if treatment == "bottom-anchor" else ("x", "y", "w")
653
+ if s["named"] in TREATMENTS and s["named"] != "overlay":
654
+ groups.setdefault("display" if s["named"] == "statement" else "content", []).append(s)
655
+ for frame, group in groups.items():
612
656
  modes = {}
613
- for k in keys:
614
- values = [round(edge(s["title"], k)) for s in group]
657
+ for k in ("x", "y", "w", "h"):
658
+ values = [round(s["title"][k]) for s in group]
615
659
  modes[k] = max(set(values), key=values.count)
616
660
  for s in group:
617
- off = [f"{k} {edge(s['title'], k):.0f} vs {modes[k]}" for k in keys if abs(edge(s["title"], k) - modes[k]) > OUTPUT_LIMITS["anchor_tol"]]
661
+ off = [f"{k} {s['title'][k]:.0f} vs {modes[k]}" for k in modes if abs(s["title"][k] - modes[k]) > OUTPUT_LIMITS["anchor_tol"]]
618
662
  if off:
619
- _finding(found, "OF-113", "HIGH", s["n"], f"{treatment} title off its frame: {', '.join(off)}",
620
- hint="Keep one frame per treatment; fix the source rather than nudging a title.")
663
+ _finding(found, "OF-113", "HIGH", s["n"], f"{s['named']} title off the shared {frame} title frame: {', '.join(off)}",
664
+ hint="Every title sits on the slide grid's title zone; fix the source, never nudge a title.")
621
665
  return found + empty_regions(slides, W, H) + agenda_numerals(slides)
622
666
 
623
667
 
624
668
  # ── OF-115: no region stands empty beside a full one ────────────────────────
625
669
  # OF-112 reads the body as one page; a region can still be empty beside a full one. Each region is
626
- # measured against its own height (40 %), and the floor under a bottom title as a distance (12 pt).
627
-
628
- def _title_lines(title):
629
- """Lines the title's text takes: explicit breaks, each wrapped at its frame width (Hangul 0.90 em)."""
630
- size = max(title["sizes"] or [1.0])
631
- inner = max(1.0, title["w"] - 14.4)
632
- return sum(max(1, -(-_wrap_em(line) * size // inner)) for line in (title["text"].splitlines() or [""]))
633
-
670
+ # measured against its own height (40 %).
634
671
 
635
672
  def _open_stretch(top, bottom, spans):
636
673
  """The tallest stretch of [top, bottom] that no (y0, y1) span covers."""
@@ -643,16 +680,15 @@ def _open_stretch(top, bottom, spans):
643
680
  return max(gap, bottom - cursor)
644
681
 
645
682
 
646
- def _short_column(n, content, title, treatment, body_floor, column_5, fields, family=None):
683
+ def _short_column(n, content, title, body_floor, fields, family=None):
647
684
  """OF-115 for a column of a two-column body that stops short of its neighbour: the largest empty band inside
648
685
  it, from the body's top down to where the neighbour ends, is over 40 % of the body. A source or note strip
649
686
  that closes the column does not hide the band above it. Beside the figures of a kpi-row or big-number slide
650
- the column is measured to the body floor (spec-v2 Amendments 9)."""
687
+ the column is measured to the body floor."""
651
688
  tol = OUTPUT_LIMITS["tol"]
652
- # The body starts under a top title; beside a side title (in its rail) or over a bottom title, at the top.
653
- top_of_title = title["y"] + title["h"] if treatment not in ("bottom-anchor", "side-rail") else 0.0
689
+ top_of_title = title["y"] + title["h"]
654
690
  body = [o for o in content if top_of_title - tol <= o["y"] < body_floor and o["w"] > 0 and o["h"] > 0
655
- and not (treatment == "side-rail" and o["x"] + o["w"] <= column_5 + tol) and not any(_inside(o, f) for f in fields)]
691
+ and not any(_inside(o, f) for f in fields)]
656
692
  if len(body) < 2:
657
693
  return None
658
694
  left_edge, right_edge = min(o["x"] for o in body), max(o["x"] + o["w"] for o in body)
@@ -699,7 +735,6 @@ def _short_column(n, content, title, treatment, body_floor, column_5, fields, fa
699
735
  def empty_regions(slides, W, H):
700
736
  found = []
701
737
  floor, tol, share_max = OUTPUT_LIMITS["band_floor"], OUTPUT_LIMITS["tol"], REGION_LIMITS["share"]
702
- column_5 = RAIL.get(round(W), RAIL[960])[1]
703
738
  for s in slides:
704
739
  title, treatment = s["title"], s["drawn"]
705
740
  if title is None:
@@ -707,22 +742,10 @@ def empty_regions(slides, W, H):
707
742
  full_bleed = lambda o: o["kind"] == "picture" and o["w"] * o["h"] >= .8 * W * H # noqa: E731
708
743
  content = [o for o in s["items"] if o is not title and o["role"] != "decoration" and not _in_footer(o) and not full_bleed(o)]
709
744
  if s["role"] in ("content", "closing") and title["sizes"]:
710
- if treatment == "bottom-anchor":
711
- gap = floor - (title["y"] + _title_lines(title) * max(title["sizes"]) * 1.15)
712
- if gap > REGION_LIMITS["floor_gap"]:
713
- _finding(found, "OF-115", "HIGH", s["n"], f"the bottom title ends {gap:.0f} pt above the body floor",
714
- hint="Stand the title's last line on the floor and give the visual above it the room.")
715
- if treatment == "side-rail" and s["family"] not in ("quote", "statement"):
716
- top = title["y"] + title["h"] # the frame keeps a spare line for a title that wraps once more
717
- rail = [(o["y"], o["y"] + o["h"]) for o in content if o["x"] + o["w"] <= column_5 + tol and o["y"] + o["h"] > top]
718
- share = _open_stretch(top, floor, rail) / max(1.0, floor - top)
719
- if share > share_max:
720
- _finding(found, "OF-115", "HIGH", s["n"], f"{share:.0%} of the side rail under the title is empty",
721
- hint="Stand the slide's criteria labels, takeaways or source in the rail, or take a top or bottom title.")
722
745
  # A takeaway column beside a chart, table or picture that runs on below the column's last block.
723
- body_floor = title["y"] - tol if treatment == "bottom-anchor" else floor
746
+ body_floor = floor
724
747
  fields = [o for o in s["items"] if o["kind"] == "shape" and o["filled"] and o["w"] * o["h"] >= .1 * W * H]
725
- short = _short_column(s["n"], content, title, treatment, body_floor, column_5, fields, s["family"])
748
+ short = _short_column(s["n"], content, title, body_floor, fields, s["family"])
726
749
  if short:
727
750
  found.append(short)
728
751
  for v in ([] if short else (o for o in content if o["kind"] in ("chart", "table", "picture"))):
@@ -759,25 +782,44 @@ def empty_regions(slides, W, H):
759
782
  return found
760
783
 
761
784
 
762
- # ── OF-116: another tonality of the same source draws another skeleton ─────
763
- # The skeleton is each content slide's title zone and column partition, as OF-111 reads them. Two
764
- # tonalities of one source with the same skeleton differ in colour only.
785
+ # ── OF-116: another tonality of the same source sets everything in the same places ─────
786
+ # Titles, headers and the body sit on the shared slide grid (slide-grid.js), so two tonalities of one source
787
+ # may differ in every look but never in where a slide's title frame and its body's top-left corner stand.
788
+ # Slides are compared in order; a slide the other deck lacks is not compared.
765
789
 
766
- def skeleton(prs):
767
- return [s["signature"][:2] for s in read_slides(prs)[3] if s["role"] == "content"]
790
+ def placement(prs):
791
+ """Per slide: the title frame and the top-left corner of what stands under it, in points."""
792
+ out = []
793
+ for s in read_slides(prs)[3]:
794
+ t = s["title"]
795
+ if t is None:
796
+ out.append(None)
797
+ continue
798
+ under = [o for o in s["items"] if o is not t and o["role"] != "decoration" and not _in_footer(o)
799
+ and o["y"] >= t["y"] + t["h"] - OUTPUT_LIMITS["tol"]
800
+ and not o["name"].startswith(("header@", "numeral@", "subtitle@"))]
801
+ corner = (min(o["x"] for o in under), min(o["y"] for o in under)) if under and s["role"] == "content" else None
802
+ out.append({"n": s["n"], "title": (t["x"], t["y"], t["w"], t["h"]), "body": corner})
803
+ return out
768
804
 
769
805
 
770
- def compare_skeletons(path, sibling):
806
+ def compare_placement(path, sibling):
771
807
  """OF-116 for a deck and the same source compiled under another tonality (qa_deck.py --sibling)."""
772
- mine, other = skeleton(Presentation(str(path))), skeleton(Presentation(str(sibling)))
773
- n = min(len(mine), len(other))
774
- differ = sum(1 for a, b in zip(mine, other) if a != b)
775
- # Two slides once the deck has four content slides: one differing slide still reads as one deck in two colours.
776
- need = 2 if n >= 4 else 1
808
+ mine, other = placement(Presentation(str(path))), placement(Presentation(str(sibling)))
809
+ tol = OUTPUT_LIMITS["anchor_tol"]
810
+ moved = []
811
+ for a, b in zip(mine, other):
812
+ if a is None or b is None:
813
+ continue
814
+ if any(abs(p - q) > tol for p, q in zip(a["title"], b["title"])):
815
+ moved.append(f"slide {a['n']} title at {[round(v) for v in a['title']]} vs {[round(v) for v in b['title']]}")
816
+ elif a["body"] and b["body"] and any(abs(p - q) > tol for p, q in zip(a["body"], b["body"])):
817
+ moved.append(f"slide {a['n']} body from {tuple(round(v) for v in a['body'])} vs {tuple(round(v) for v in b['body'])}")
777
818
  found = []
778
- if n and differ < need:
779
- _finding(found, "OF-116", "HIGH", None, f"{differ} of {n} content slides differ in title zone or partition from {Path(sibling).name} (needs {need})",
780
- hint="Give the tonality its own structure: its role defaults, another title zone or partition on the slides both decks share.")
819
+ if moved:
820
+ _finding(found, "OF-116", "HIGH", None,
821
+ f"{len(moved)} slide(s) placed differently from {Path(sibling).name}: {'; '.join(moved[:4])}",
822
+ hint="A tonality changes the look of a zone, never its place: draw the title and the body on the slide grid's zones.")
781
823
  return found
782
824
 
783
825
 
@@ -6,7 +6,7 @@ python-pptx has no font-embedding API, so this post-processes the OOXML package
6
6
  directly: it adds /ppt/fonts/*.fntdata parts, a fntdata content-type default,
7
7
  presentation relationships, and a <p:embeddedFontLst> in ppt/presentation.xml.
8
8
 
9
- Only families with a bundled OTF are embedded; unknown families are warned
9
+ Only families with a bundled font file (Pretendard, A2Z, JetBrains Mono) are embedded; unknown families are warned
10
10
  about and skipped — never corrupting the file.
11
11
 
12
12
  Usage:
@@ -41,6 +41,11 @@ def _a2z(weight):
41
41
  return p if os.path.exists(p) else None
42
42
 
43
43
 
44
+ def _mono(weight):
45
+ p = os.path.join(ROOT, "fonts", "jetbrains-mono", f"JetBrainsMono-{weight}.ttf")
46
+ return p if os.path.exists(p) else None
47
+
48
+
44
49
  def resolve_family(typeface):
45
50
  """Return {slot: otf_path} for a typeface, or {} if no bundled file.
46
51
 
@@ -54,6 +59,13 @@ def resolve_family(typeface):
54
59
  if _pretendard("Bold"):
55
60
  slots["bold"] = _pretendard("Bold")
56
61
  return slots
62
+ if tf == "JetBrains Mono":
63
+ slots = {}
64
+ if _mono("Regular"):
65
+ slots["regular"] = _mono("Regular")
66
+ if _mono("Bold"):
67
+ slots["bold"] = _mono("Bold")
68
+ return slots
57
69
  # Per-weight families: "에이투지체 7 Bold", "에이투지체 4 Regular", ...
58
70
  last = tf.split()[-1] if tf.split() else ""
59
71
  if ("에이투지체" in tf or tf.startswith("A2Z")) and last in A2Z_WEIGHTS: