@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
@@ -8,6 +8,8 @@ import { spawn, spawnSync } from "node:child_process";
8
8
  import { closeSync, createWriteStream, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
9
9
  import { dirname, join, resolve } from "node:path";
10
10
  import { fileURLToPath, pathToFileURL } from "node:url";
11
+ import { checkProductFiles, fetchAssets } from "../engine/assets.mjs";
12
+ import { blenderCommand } from "../engine/blender.mjs";
11
13
  import { evaluateCompletion } from "../engine/completion.mjs";
12
14
  import { Composer } from "../engine/compose.mjs";
13
15
  import { CREDIT_LINE, ENGINE_CREDIT, EXIT, Exit, FRAME, INSTALL_COMMAND, MAX_ROUNDS, NEAR_BLACK, PERF, PREVIEW, SAMPLING } from "../engine/constants.mjs";
@@ -18,9 +20,11 @@ import { coverGate, formatCoverReport } from "../engine/cover-gate.mjs";
18
20
  export { promote };
19
21
  import { Blocked, close, launch, openEgress, perfFrame, renderFrame } from "../engine/driver.mjs";
20
22
  import { FlashDetector } from "../engine/flash.mjs";
23
+ import { stylesCommand } from "../engine/gallery.mjs";
21
24
  import { FONTS, fontEntry, fontPath, verifyFonts, verifyStrokeFonts } from "../engine/fonts.mjs";
22
25
  import { evaluate, flashFailed, gatePassed, isSoftwareRenderer, timelineRules } from "../engine/gate.mjs";
23
26
  import { contactSheet, decodePng, downscale, encodePng, luminancePercentile, rgbaSha256 } from "../engine/image.mjs";
27
+ import { recordHouse } from "../engine/house.mjs";
24
28
  import { passRanges, planPasses } from "../engine/passes.mjs";
25
29
  import { PRESETS, pickPreset, presetFontKeys } from "../engine/presets.mjs";
26
30
  import { renderReport } from "../engine/report.mjs";
@@ -30,20 +34,34 @@ import { loadTreatment, normalizeText, TreatmentError } from "../engine/treatmen
30
34
  import { gateStage, runStage, stillsEntry, writeStills } from "../engine/stage-render.mjs";
31
35
  import { recordLook, viewedFor } from "../engine/look.mjs";
32
36
  import { measureMuxed, prepareTrack, soundFailed, trackPath } from "../engine/sound.mjs";
37
+ import { scaffoldCommand } from "../engine/scaffold.mjs";
33
38
  import { loadStrokeFont, strokeText } from "../engine/stroke.mjs";
39
+ import { readStyle } from "../engine/styles.mjs";
34
40
  import { FontBook, missingGlyphs } from "../engine/type.mjs";
35
41
 
36
42
  const SELF = fileURLToPath(import.meta.url);
37
- const MODES = ["stage", "cover", "cover-gate", "sound", "look", "film", "stills", "sheet", "video", "perf", "gate", "completion", "determinism"];
43
+ const MODES = ["scaffold", "styles", "stage", "cover", "cover-gate", "assets", "blender", "sound", "look", "film", "stills", "sheet", "video", "perf", "gate", "completion", "determinism"];
38
44
 
39
45
  export const USAGE = `lit-typographic-motion render CLI (LitCodex)
40
46
  Every render reads <dir>/treatment.json first (or --treatment <file>); references/treatment.md.
41
47
  Usage:
48
+ node render.mjs scaffold --out <dir>
49
+ (writes the starting <dir>/stage/index.html from treatment.json: the COPY block, one section per
50
+ shot in its zones, the style's tokens, one DRAW function per shot; never overwrites a page)
51
+ node render.mjs styles --out <dir> [--format 16:9|9:16]
52
+ (renders one short demo in each house style and sheets the boards into <dir>/styles.png)
42
53
  node render.mjs stage --out <dir> [--round N] [--stills-only] [--detach]
43
- (renders <dir>/stage/index.html; references/stage.md)
54
+ (renders <dir>/stage/index.html; references/stage.md; --stills-only writes the beat stills and the
55
+ storyboard stills/board.png and runs the layout check, no video)
44
56
  node render.mjs cover --out <dir> [--round N] [--window t0,t1] [--detach]
45
57
  (a seamless README cover loop from <dir>/cover/index.html; references/cover.md;
46
58
  --window re-renders only t0-0.5 s .. t1+0.5 s and sheets it, never done)
59
+ node render.mjs assets --out <dir> --url <link> [--cover]
60
+ (a linked product's real logo, README images and words, fetched as untrusted data into
61
+ <dir>/stage/assets/ or, with --cover, <dir>/cover/assets/; exit 22 when nothing is reachable)
62
+ node render.mjs blender --out <dir> [--preview | --final]
63
+ (renders <dir>/stage/scene.py with Cycles: preview stills, or the plate in <dir>/stage/plate/;
64
+ without Blender it renders nothing and names the three.js fallback; references/depth.md)
47
65
  node render.mjs cover-gate --file <cover.webp|cover.gif|frames dir> [--frames d --frames2 d --masks d
48
66
  --title x,y,w,h] [--strict] [--json] (the cover gate on a decoded file)
49
67
  node render.mjs sound --out <dir> (builds <dir>/sound/bed.wav and sound-cues.json from the treatment)
@@ -73,7 +91,7 @@ export function parseArgs(argv) {
73
91
  const token = rest[i];
74
92
  if (!token.startsWith("--")) throw new Error(`unexpected argument: ${token}`);
75
93
  const key = token.slice(2);
76
- if (["stills-only", "cuts", "word-timing", "help", "detach", "strict", "json"].includes(key)) args.flags.add(key);
94
+ if (["stills-only", "cuts", "word-timing", "help", "detach", "strict", "json", "cover", "preview", "final"].includes(key)) args.flags.add(key);
77
95
  else {
78
96
  const value = rest[i + 1];
79
97
  if (value === undefined || value.startsWith("--")) throw new Error(`--${key} needs a value`);
@@ -106,6 +124,7 @@ export function resolveTreatment(args, expectPath) {
106
124
  if (error instanceof TreatmentError) throw new Exit(EXIT.BLOCKED_TREATMENT_INVALID, `BLOCKED_TREATMENT_INVALID: ${error.message}`);
107
125
  throw error;
108
126
  }
127
+ checkProductFiles(outDir, treatment);
109
128
  mkdirSync(join(outDir, ".run"), { recursive: true });
110
129
  const first = join(outDir, ".run", "treatment-first.json");
111
130
  if (!existsSync(first)) writeFileSync(first, `${JSON.stringify(treatment, null, 2)}\n`);
@@ -116,10 +135,12 @@ export function resolveTreatment(args, expectPath) {
116
135
  /** The type engine's brief from the treatment; an explicit --brief may only add per-line staging. */
117
136
  function typeBrief(args, treatment) {
118
137
  const plan = treatment.typePlan ?? {};
138
+ // The type preset follows the film's house style unless the plan names one.
139
+ const preset = plan.preset ?? (treatment.style ? readStyle(treatment.style).typePreset : undefined);
119
140
  const brief = {
120
141
  lines: treatment.copy.lines,
121
142
  durationSec: treatment.durationSec,
122
- ...(plan.preset ? { preset: plan.preset, presetSource: plan.presetSource === "user" ? "user" : "agent" } : {}),
143
+ ...(preset ? { preset, presetSource: plan.presetSource === "user" ? "user" : "agent" } : {}),
123
144
  ...(plan.filmName ? { filmName: plan.filmName } : {}),
124
145
  showIndex: plan.showIndex === true,
125
146
  ...(treatment.sound?.mode === "generated" ? { bpm: treatment.sound.tempo } : {}),
@@ -603,6 +624,7 @@ async function runFilm(args, ctx) {
603
624
  out(`report: ${join(ctx.outDir, "gate-report.txt")}`);
604
625
  if (soundFailed(rules)) throw new Exit(EXIT.SOUND_INVALID, `SOUND_INVALID: ${rules.filter((r) => r.sound && r.status === "FAIL").map((r) => `${r.id} ${r.detail}`).join("; ")}`);
605
626
  if (passed) {
627
+ if (ctx.treatment?.style) recordHouse(ctx.outDir, { style: ctx.treatment.style, path: ctx.treatment.path, format: ctx.treatment.format, durationSec: ctx.treatment.durationSec });
606
628
  out(`GATE PASS: ${join(ctx.outDir, "film.mp4")}`);
607
629
  return EXIT.OK;
608
630
  }
@@ -763,6 +785,19 @@ export async function main(argv = process.argv.slice(2)) {
763
785
  else out(`look round ${entry.round} recorded against stills ${entry.manifestSha256.slice(0, 12)}: ${Object.keys(entry.frames).length} frames stamped${entry.needsAnotherRound ? `; another round needed: ${entry.openItems.map((item) => item.split(":")[0]).join(", ")}` : "; nothing asks for another round"}`);
764
786
  return EXIT.OK;
765
787
  }
788
+ if (args.mode === "assets") {
789
+ if (!args.out || !args.url) throw new Exit(EXIT.USAGE, "assets needs --out <dir> --url <link>");
790
+ const result = await fetchAssets({ out: resolve(args.out), url: args.url, cover: args.flags.has("cover") });
791
+ out(result.message);
792
+ return result.code;
793
+ }
794
+ if (args.mode === "blender") {
795
+ if (args.flags.has("preview") && args.flags.has("final")) throw new Exit(EXIT.USAGE, "blender takes --preview or --final, not both");
796
+ const { treatment } = resolveTreatment(args, "stage");
797
+ const result = await blenderCommand({ out: resolve(args.out), treatment, final: args.flags.has("final"), log: out });
798
+ out(result.message);
799
+ return result.code;
800
+ }
766
801
  if (args.mode === "cover") {
767
802
  if (!args.out) throw new Exit(EXIT.USAGE, "--out <dir> is required");
768
803
  const outDir = resolve(args.out);
@@ -793,6 +828,18 @@ export async function main(argv = process.argv.slice(2)) {
793
828
  if (track.wav) out(`track: ${track.wav}\ncues: ${join(outDir, "sound-cues.json")}`);
794
829
  return EXIT.OK;
795
830
  }
831
+ if (args.mode === "scaffold") {
832
+ if (!args.out) throw new Exit(EXIT.USAGE, "--out <dir> is required");
833
+ resolveTreatment(args, "stage");
834
+ out(scaffoldCommand({ out: resolve(args.out) }));
835
+ return EXIT.OK;
836
+ }
837
+ if (args.mode === "styles") {
838
+ if (!args.out) throw new Exit(EXIT.USAGE, "--out <dir> is required");
839
+ const result = await stylesCommand({ out: resolve(args.out), format: args.format ?? "16:9", log: out });
840
+ out(result.message);
841
+ return result.code;
842
+ }
796
843
  if (args.mode === "stage") {
797
844
  const { treatment } = resolveTreatment(args, "stage");
798
845
  if (args.flags.has("detach") && !args.flags.has("stills-only")) return detach(argv, resolve(args.out));
@@ -0,0 +1,185 @@
1
+ {
2
+ "schema": "litcodex.motion-style/v1",
3
+ "id": "paper",
4
+ "name": "Paper",
5
+ "summary": "Warm paper ground, near-black ink, a terracotta signal and one blue beat; soft springs and a hand-drawn calm.",
6
+ "light": true,
7
+ "typePreset": null,
8
+ "palette": {
9
+ "ground": "#F3EEE5",
10
+ "surface": "#E6DED0",
11
+ "ink": "#1D1B18",
12
+ "muted": "#5B564E",
13
+ "signal": "#B0452A",
14
+ "accent": "#2B5D8E",
15
+ "line": "#C9BFAE"
16
+ },
17
+ "accents": [
18
+ {
19
+ "role": "growth and done",
20
+ "color": "#3F7D3A"
21
+ },
22
+ {
23
+ "role": "a second data series",
24
+ "color": "#7A3E7A"
25
+ },
26
+ {
27
+ "role": "a warning or a date",
28
+ "color": "#8A6418"
29
+ },
30
+ {
31
+ "role": "a third data series",
32
+ "color": "#1F6F6B"
33
+ }
34
+ ],
35
+ "textRoles": [
36
+ "ink",
37
+ "muted",
38
+ "signal",
39
+ "accent",
40
+ "ground"
41
+ ],
42
+ "faces": {
43
+ "display": {
44
+ "family": "Pretendard",
45
+ "weight": 700
46
+ },
47
+ "headline": {
48
+ "family": "Pretendard",
49
+ "weight": 700
50
+ },
51
+ "body": {
52
+ "family": "Pretendard",
53
+ "weight": 400
54
+ },
55
+ "label": {
56
+ "family": "JetBrains Mono",
57
+ "weight": 400
58
+ }
59
+ },
60
+ "scale": {
61
+ "16:9": {
62
+ "display": 112,
63
+ "headline": 68,
64
+ "body": 40,
65
+ "label": 26
66
+ },
67
+ "9:16": {
68
+ "display": 108,
69
+ "headline": 74,
70
+ "body": 46,
71
+ "label": 32
72
+ }
73
+ },
74
+ "leading": {
75
+ "display": 1.15,
76
+ "headline": 1.25,
77
+ "body": 1.6,
78
+ "label": 1.4
79
+ },
80
+ "motion": {
81
+ "ease": {
82
+ "enter": [
83
+ 0.22,
84
+ 1,
85
+ 0.36,
86
+ 1
87
+ ],
88
+ "move": [
89
+ 0.65,
90
+ 0,
91
+ 0.35,
92
+ 1
93
+ ],
94
+ "exit": [
95
+ 0.55,
96
+ 0,
97
+ 1,
98
+ 0.45
99
+ ]
100
+ },
101
+ "dur": {
102
+ "micro": 0.18,
103
+ "move": 0.55,
104
+ "hero": 0.8,
105
+ "exit": 0.32
106
+ },
107
+ "stagger": {
108
+ "letter": 0.03,
109
+ "word": 0.09,
110
+ "item": 0.1
111
+ },
112
+ "spring": {
113
+ "micro": {
114
+ "zeta": 0.85,
115
+ "hz": 3.5
116
+ },
117
+ "panel": {
118
+ "zeta": 0.8,
119
+ "hz": 2
120
+ },
121
+ "headline": {
122
+ "zeta": 0.95,
123
+ "hz": 2.2
124
+ },
125
+ "subject": {
126
+ "zeta": 0.6,
127
+ "hz": 1.8
128
+ },
129
+ "camera": {
130
+ "zeta": 1,
131
+ "hz": 0.5
132
+ }
133
+ },
134
+ "secondary": {
135
+ "delay": 0.15,
136
+ "travel": 0.6
137
+ },
138
+ "ambient": {
139
+ "travel": 0.04
140
+ },
141
+ "push": 0.02
142
+ },
143
+ "transitions": [
144
+ "cut",
145
+ "match",
146
+ "wipe",
147
+ "iris",
148
+ "push"
149
+ ],
150
+ "ground": {
151
+ "kind": "flat"
152
+ },
153
+ "sound": {
154
+ "palette": "felt",
155
+ "key": "F major",
156
+ "tempo": 96
157
+ },
158
+ "score": {
159
+ "genre": "garage"
160
+ },
161
+ "beds": [
162
+ {
163
+ "palette": "felt",
164
+ "key": "F major",
165
+ "tempo": 96
166
+ },
167
+ {
168
+ "palette": "air",
169
+ "key": "G major",
170
+ "tempo": 88
171
+ },
172
+ {
173
+ "palette": "glass",
174
+ "key": "C major",
175
+ "tempo": 108
176
+ }
177
+ ],
178
+ "bans": [
179
+ "drop shadows that float type",
180
+ "neon or glow",
181
+ "gradients on type",
182
+ "a saturated colour with no job",
183
+ "bouncy type"
184
+ ]
185
+ }
@@ -0,0 +1,188 @@
1
+ {
2
+ "schema": "litcodex.motion-style/v1",
3
+ "id": "swiss-signal",
4
+ "name": "Swiss signal",
5
+ "summary": "Near-black ground, bone type, a teal signal and one amber beat; type lands square on the grid and cuts are hard.",
6
+ "light": false,
7
+ "typePreset": "swiss-signal",
8
+ "palette": {
9
+ "ground": "#0C0E13",
10
+ "surface": "#171B24",
11
+ "ink": "#E9EBE4",
12
+ "muted": "#A4A9AF",
13
+ "signal": "#0F7A82",
14
+ "accent": "#D9A441",
15
+ "line": "#4B5058"
16
+ },
17
+ "accents": [
18
+ {
19
+ "role": "state under review",
20
+ "color": "#E2725B"
21
+ },
22
+ {
23
+ "role": "state planned",
24
+ "color": "#9B8CFF"
25
+ },
26
+ {
27
+ "role": "state done",
28
+ "color": "#8FC25A"
29
+ },
30
+ {
31
+ "role": "state in progress",
32
+ "color": "#5BA8E0"
33
+ }
34
+ ],
35
+ "textRoles": [
36
+ "ink",
37
+ "muted",
38
+ "signal",
39
+ "accent",
40
+ "ground"
41
+ ],
42
+ "faces": {
43
+ "display": {
44
+ "family": "Archivo",
45
+ "weight": 900,
46
+ "stretch": "100%"
47
+ },
48
+ "headline": {
49
+ "family": "Archivo",
50
+ "weight": 700,
51
+ "stretch": "100%"
52
+ },
53
+ "body": {
54
+ "family": "Pretendard",
55
+ "weight": 400
56
+ },
57
+ "label": {
58
+ "family": "JetBrains Mono",
59
+ "weight": 400
60
+ }
61
+ },
62
+ "scale": {
63
+ "16:9": {
64
+ "display": 128,
65
+ "headline": 76,
66
+ "body": 40,
67
+ "label": 26
68
+ },
69
+ "9:16": {
70
+ "display": 120,
71
+ "headline": 80,
72
+ "body": 46,
73
+ "label": 32
74
+ }
75
+ },
76
+ "leading": {
77
+ "display": 1.1,
78
+ "headline": 1.2,
79
+ "body": 1.55,
80
+ "label": 1.4
81
+ },
82
+ "motion": {
83
+ "ease": {
84
+ "enter": [
85
+ 0.16,
86
+ 1,
87
+ 0.3,
88
+ 1
89
+ ],
90
+ "move": [
91
+ 0.65,
92
+ 0,
93
+ 0.35,
94
+ 1
95
+ ],
96
+ "exit": [
97
+ 0.7,
98
+ 0,
99
+ 0.84,
100
+ 0
101
+ ]
102
+ },
103
+ "dur": {
104
+ "micro": 0.15,
105
+ "move": 0.45,
106
+ "hero": 0.6,
107
+ "exit": 0.28
108
+ },
109
+ "stagger": {
110
+ "letter": 0.025,
111
+ "word": 0.07,
112
+ "item": 0.08
113
+ },
114
+ "spring": {
115
+ "micro": {
116
+ "zeta": 1,
117
+ "hz": 4
118
+ },
119
+ "panel": {
120
+ "zeta": 0.9,
121
+ "hz": 2.2
122
+ },
123
+ "headline": {
124
+ "zeta": 1,
125
+ "hz": 2.6
126
+ },
127
+ "subject": {
128
+ "zeta": 0.8,
129
+ "hz": 1.8
130
+ },
131
+ "camera": {
132
+ "zeta": 1,
133
+ "hz": 0.5
134
+ }
135
+ },
136
+ "secondary": {
137
+ "delay": 0.15,
138
+ "travel": 0.6
139
+ },
140
+ "ambient": {
141
+ "travel": 0.03
142
+ },
143
+ "push": 0.02
144
+ },
145
+ "transitions": [
146
+ "cut",
147
+ "wipe",
148
+ "match",
149
+ "push"
150
+ ],
151
+ "ground": {
152
+ "kind": "flat",
153
+ "grid": true
154
+ },
155
+ "sound": {
156
+ "palette": "glass",
157
+ "key": "A minor",
158
+ "tempo": 104
159
+ },
160
+ "score": {
161
+ "genre": "house"
162
+ },
163
+ "beds": [
164
+ {
165
+ "palette": "glass",
166
+ "key": "A minor",
167
+ "tempo": 104
168
+ },
169
+ {
170
+ "palette": "pulse",
171
+ "key": "D minor",
172
+ "tempo": 112
173
+ },
174
+ {
175
+ "palette": "felt",
176
+ "key": "C major",
177
+ "tempo": 96
178
+ }
179
+ ],
180
+ "bans": [
181
+ "glow or bloom around type",
182
+ "a second accent colour with no job",
183
+ "a centred fade-in as the only move",
184
+ "overshoot or bounce on type",
185
+ "particles used as decoration",
186
+ "a gradient under body text"
187
+ ]
188
+ }
@@ -0,0 +1,182 @@
1
+ {
2
+ "schema": "litcodex.motion-style/v1",
3
+ "id": "terminalcore",
4
+ "name": "Terminalcore",
5
+ "summary": "A navy terminal: phosphor type typed out at keyboard speed, one signal hue, hard cuts and no easing.",
6
+ "light": false,
7
+ "typePreset": "terminalcore",
8
+ "palette": {
9
+ "ground": "#05070A",
10
+ "surface": "#0C1116",
11
+ "ink": "#39FF6A",
12
+ "muted": "#7C8B93",
13
+ "signal": "#39FF6A",
14
+ "line": "#1E2A33"
15
+ },
16
+ "accents": [
17
+ {
18
+ "role": "a warning line",
19
+ "color": "#FFB23F"
20
+ },
21
+ {
22
+ "role": "an error line",
23
+ "color": "#FF6B6B"
24
+ },
25
+ {
26
+ "role": "a path or a link",
27
+ "color": "#6CA8FF"
28
+ }
29
+ ],
30
+ "textRoles": [
31
+ "ink",
32
+ "muted",
33
+ "signal",
34
+ "ground"
35
+ ],
36
+ "faces": {
37
+ "display": {
38
+ "family": "VT323",
39
+ "weight": 400
40
+ },
41
+ "headline": {
42
+ "family": "VT323",
43
+ "weight": 400
44
+ },
45
+ "body": {
46
+ "family": "VT323",
47
+ "weight": 400
48
+ },
49
+ "label": {
50
+ "family": "JetBrains Mono",
51
+ "weight": 400
52
+ }
53
+ },
54
+ "hangul": {
55
+ "family": "Galmuri9",
56
+ "weight": 400
57
+ },
58
+ "scale": {
59
+ "16:9": {
60
+ "display": 126,
61
+ "headline": 81,
62
+ "body": 45,
63
+ "label": 36
64
+ },
65
+ "9:16": {
66
+ "display": 117,
67
+ "headline": 81,
68
+ "body": 54,
69
+ "label": 36
70
+ }
71
+ },
72
+ "leading": {
73
+ "display": 1.1,
74
+ "headline": 1.2,
75
+ "body": 1.5,
76
+ "label": 1.4
77
+ },
78
+ "motion": {
79
+ "ease": {
80
+ "enter": [
81
+ 0,
82
+ 0,
83
+ 1,
84
+ 1
85
+ ],
86
+ "move": [
87
+ 0,
88
+ 0,
89
+ 1,
90
+ 1
91
+ ],
92
+ "exit": [
93
+ 0,
94
+ 0,
95
+ 1,
96
+ 1
97
+ ]
98
+ },
99
+ "dur": {
100
+ "micro": 0.1,
101
+ "move": 0.3,
102
+ "hero": 0.5,
103
+ "exit": 0.1
104
+ },
105
+ "stagger": {
106
+ "letter": 0.0455,
107
+ "word": 0.18,
108
+ "item": 0.25
109
+ },
110
+ "spring": {
111
+ "micro": {
112
+ "zeta": 1,
113
+ "hz": 6
114
+ },
115
+ "panel": {
116
+ "zeta": 1,
117
+ "hz": 4
118
+ },
119
+ "headline": {
120
+ "zeta": 1,
121
+ "hz": 4
122
+ },
123
+ "subject": {
124
+ "zeta": 1,
125
+ "hz": 3
126
+ },
127
+ "camera": {
128
+ "zeta": 1,
129
+ "hz": 1
130
+ }
131
+ },
132
+ "secondary": {
133
+ "delay": 0.1,
134
+ "travel": 0.6
135
+ },
136
+ "ambient": {
137
+ "travel": 0.02
138
+ },
139
+ "push": 0
140
+ },
141
+ "transitions": [
142
+ "cut",
143
+ "wipe"
144
+ ],
145
+ "ground": {
146
+ "kind": "flat",
147
+ "panel": "surface"
148
+ },
149
+ "sound": {
150
+ "palette": "pulse",
151
+ "key": "E minor",
152
+ "tempo": 120
153
+ },
154
+ "score": {
155
+ "genre": "tech-house"
156
+ },
157
+ "beds": [
158
+ {
159
+ "palette": "pulse",
160
+ "key": "E minor",
161
+ "tempo": 120
162
+ },
163
+ {
164
+ "palette": "glass",
165
+ "key": "B minor",
166
+ "tempo": 132
167
+ },
168
+ {
169
+ "palette": "pulse",
170
+ "key": "A minor",
171
+ "tempo": 100
172
+ }
173
+ ],
174
+ "bans": [
175
+ "falling code rain",
176
+ "purple and cyan neon haze",
177
+ "glitch running the whole film",
178
+ "an accent hue with no job",
179
+ "pixel type too small to read",
180
+ "eased type"
181
+ ]
182
+ }