@litfamily/litgravity 0.1.0 → 0.1.2

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 (248) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +72 -17
  3. package/README_ko-KR.md +72 -17
  4. package/package.json +1 -1
  5. package/plugin/hooks/lib/lanes.mjs +65 -0
  6. package/plugin/hooks/lib/motion.mjs +34 -5
  7. package/plugin/hooks/lib/reentry.mjs +7 -0
  8. package/plugin/hooks/lib/rewind/brief.mjs +332 -0
  9. package/plugin/hooks/lib/rewind/collect.mjs +328 -0
  10. package/plugin/hooks/lib/rewind/gauge.mjs +55 -0
  11. package/plugin/hooks/lib/rewind/next-step.mjs +77 -0
  12. package/plugin/hooks/lib/rewind/redact.mjs +60 -0
  13. package/plugin/hooks/lib/rewind/transcripts.mjs +211 -0
  14. package/plugin/hooks/lib/routes.mjs +79 -5
  15. package/plugin/hooks/lib/workflow-stack.mjs +213 -0
  16. package/plugin/hooks/post-tool-use.mjs +37 -1
  17. package/plugin/hooks/pre-invocation.mjs +91 -2
  18. package/plugin/hooks/session-start.mjs +26 -3
  19. package/plugin/hooks/stop.mjs +22 -2
  20. package/plugin/hud/looks.mjs +29 -0
  21. package/plugin/hud/render.mjs +234 -12
  22. package/plugin/plugin.json +1 -1
  23. package/plugin/skills/frontend-ui-ux/SKILL.md +12 -1
  24. package/plugin/skills/frontend-ui-ux/kit/components.css +417 -0
  25. package/plugin/skills/frontend-ui-ux/kit/fonts.json +22 -0
  26. package/plugin/skills/frontend-ui-ux/kit/layouts/landing.html +164 -0
  27. package/plugin/skills/frontend-ui-ux/kit/layouts/settings.html +114 -0
  28. package/plugin/skills/frontend-ui-ux/kit/layouts/workspace.html +115 -0
  29. package/plugin/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +227 -0
  30. package/plugin/skills/frontend-ui-ux/kit/styles/field-notes.json +205 -0
  31. package/plugin/skills/frontend-ui-ux/kit/styles/graphite.json +200 -0
  32. package/plugin/skills/frontend-ui-ux/kit/styles/meadow.json +199 -0
  33. package/plugin/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +222 -0
  34. package/plugin/skills/frontend-ui-ux/kit/ui.js +226 -0
  35. package/plugin/skills/frontend-ui-ux/references/house-styles.md +234 -0
  36. package/plugin/skills/frontend-ui-ux/scripts/design-lock.mjs +400 -0
  37. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-lock.mjs +196 -0
  38. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +30 -9
  39. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +20 -8
  40. package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +42 -9
  41. package/plugin/skills/frontend-ui-ux/scripts/pixel-art.mjs +60 -0
  42. package/plugin/skills/lit-adhd/SKILL.md +157 -0
  43. package/plugin/skills/lit-adhd/references/card-examples.md +101 -0
  44. package/plugin/skills/lit-adhd/references/status-taxonomy.md +32 -0
  45. package/plugin/skills/lit-adhd/scripts/rewind.mjs +5 -0
  46. package/plugin/skills/lit-diagram-drawer/SKILL.md +5 -3
  47. package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +1 -1
  48. package/plugin/skills/lit-diagram-drawer/references/style-guide.md +21 -12
  49. package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +3 -3
  50. package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +1 -1
  51. package/plugin/skills/lit-diagram-drawer/references/type-tree.md +3 -3
  52. package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +1 -1
  53. package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +1 -2
  54. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +1 -2
  55. package/plugin/skills/lit-docx/SKILL.md +3 -3
  56. package/plugin/skills/lit-handoff/SKILL.md +1 -0
  57. package/plugin/skills/lit-hijack/SKILL.md +263 -0
  58. package/plugin/skills/lit-hijack/references/capture-and-provenance.md +100 -0
  59. package/plugin/skills/lit-hijack/references/clean-room-build.md +75 -0
  60. package/plugin/skills/lit-hijack/references/distil-and-licence.md +67 -0
  61. package/plugin/skills/lit-hijack/references/gap-and-port-design.md +100 -0
  62. package/plugin/skills/lit-hijack/references/parity-and-report.md +85 -0
  63. package/plugin/skills/lit-hijack/scripts/hijack.mjs +953 -0
  64. package/plugin/skills/lit-plan/SKILL.md +1 -1
  65. package/plugin/skills/lit-pptx/SKILL.md +8 -8
  66. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  67. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  68. package/plugin/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +93 -0
  69. package/plugin/skills/lit-pptx/fonts/provenance.json +32 -1
  70. package/plugin/skills/lit-pptx/references/agents/analyst.md +34 -56
  71. package/plugin/skills/lit-pptx/references/agents/antithesis.md +49 -67
  72. package/plugin/skills/lit-pptx/references/agents/architect.md +38 -51
  73. package/plugin/skills/lit-pptx/references/agents/critic.md +25 -41
  74. package/plugin/skills/lit-pptx/references/agents/synthesizer.md +37 -46
  75. package/plugin/skills/lit-pptx/references/agents/thesis.md +29 -49
  76. package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +119 -145
  77. package/plugin/skills/lit-pptx/references/authoring-guide.md +187 -278
  78. package/plugin/skills/lit-pptx/references/consensus-protocol.md +99 -97
  79. package/plugin/skills/lit-pptx/references/data-display-cookbook.md +36 -137
  80. package/plugin/skills/lit-pptx/references/density-and-fill.md +147 -216
  81. package/plugin/skills/lit-pptx/references/design-system-azure.md +56 -85
  82. package/plugin/skills/lit-pptx/references/direction-step.md +134 -176
  83. package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +114 -115
  84. package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +66 -66
  85. package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +63 -63
  86. package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +96 -96
  87. package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +81 -81
  88. package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +103 -103
  89. package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +100 -98
  90. package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +76 -76
  91. package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +96 -96
  92. package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +80 -80
  93. package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +72 -72
  94. package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +95 -95
  95. package/plugin/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +173 -0
  96. package/plugin/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +154 -0
  97. package/plugin/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +139 -0
  98. package/plugin/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +158 -0
  99. package/plugin/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +179 -0
  100. package/plugin/skills/lit-pptx/references/interview-protocol.md +83 -102
  101. package/plugin/skills/lit-pptx/references/layout-families.md +161 -265
  102. package/plugin/skills/lit-pptx/references/stages/autopilot.md +30 -70
  103. package/plugin/skills/lit-pptx/references/stages/interview.md +36 -68
  104. package/plugin/skills/lit-pptx/references/stages/plan.md +26 -67
  105. package/plugin/skills/lit-pptx/references/title-treatments.md +93 -145
  106. package/plugin/skills/lit-pptx/references/tonalities/atlas.md +95 -108
  107. package/plugin/skills/lit-pptx/references/tonalities/bauhaus.md +140 -0
  108. package/plugin/skills/lit-pptx/references/tonalities/chalk.md +107 -122
  109. package/plugin/skills/lit-pptx/references/tonalities/computational-brutalism.md +150 -0
  110. package/plugin/skills/lit-pptx/references/tonalities/gazette.md +87 -111
  111. package/plugin/skills/lit-pptx/references/tonalities/ledger.md +96 -125
  112. package/plugin/skills/lit-pptx/references/tonalities/neo-brutalism.md +161 -0
  113. package/plugin/skills/lit-pptx/references/tonalities/newsroom.md +144 -0
  114. package/plugin/skills/lit-pptx/references/tonalities/night.md +104 -131
  115. package/plugin/skills/lit-pptx/references/tonalities/paper.md +114 -130
  116. package/plugin/skills/lit-pptx/references/tonalities/riso.md +137 -0
  117. package/plugin/skills/lit-pptx/references/tonalities/signal.md +96 -103
  118. package/plugin/skills/lit-pptx/references/tonalities/studio.md +81 -112
  119. package/plugin/skills/lit-pptx/scripts/compile-deck.js +4 -6
  120. package/plugin/skills/lit-pptx/scripts/craft_extras.py +135 -91
  121. package/plugin/skills/lit-pptx/scripts/deck_craft.py +1 -1
  122. package/plugin/skills/lit-pptx/scripts/embed_fonts.py +13 -1
  123. package/plugin/skills/lit-pptx/scripts/layout_inventory.py +1 -1
  124. package/plugin/skills/lit-pptx/scripts/learn_template.py +1 -1
  125. package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +101 -110
  126. package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +9 -15
  127. package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +370 -563
  128. package/plugin/skills/lit-pptx/scripts/lib/slide-grid.js +104 -0
  129. package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +57 -6
  130. package/plugin/skills/lit-pptx/scripts/qa_deck.py +6 -6
  131. package/plugin/skills/lit-pptx/scripts/render_pages.py +31 -0
  132. package/plugin/skills/lit-pptx/scripts/validate_pptx.py +1 -1
  133. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +167 -191
  134. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +117 -166
  135. package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +307 -330
  136. package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +1 -1
  137. package/plugin/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +98 -0
  138. package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +1 -1
  139. package/plugin/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +99 -0
  140. package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +1 -1
  141. package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +1 -1
  142. package/plugin/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +107 -0
  143. package/plugin/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +99 -0
  144. package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +1 -1
  145. package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +1 -1
  146. package/plugin/skills/lit-pptx/templates/tonalities/riso/pack.yaml +99 -0
  147. package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +2 -2
  148. package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +1 -1
  149. package/plugin/skills/lit-schematic/SKILL.md +114 -0
  150. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +38 -0
  151. package/plugin/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +133 -0
  152. package/plugin/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +87 -0
  153. package/plugin/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +85 -0
  154. package/plugin/skills/lit-schematic/references/cutaway-outputs.md +70 -0
  155. package/plugin/skills/lit-schematic/references/isometric-craft.md +101 -0
  156. package/plugin/skills/lit-schematic/references/journal-figures.md +72 -0
  157. package/plugin/skills/lit-schematic/references/kit-api.md +134 -0
  158. package/plugin/skills/lit-schematic/references/pfd-and-layout.md +53 -0
  159. package/plugin/skills/lit-schematic/references/pid-drafting.md +103 -0
  160. package/plugin/skills/lit-schematic/references/pid-symbols.md +163 -0
  161. package/plugin/skills/lit-schematic/references/verification.md +100 -0
  162. package/plugin/skills/lit-schematic/scripts/doctor.mjs +57 -0
  163. package/plugin/skills/lit-schematic/scripts/lib/figure.mjs +81 -0
  164. package/plugin/skills/lit-schematic/scripts/lib/fonts.mjs +27 -0
  165. package/plugin/skills/lit-schematic/scripts/lib/geom.mjs +113 -0
  166. package/plugin/skills/lit-schematic/scripts/lib/interactive.mjs +292 -0
  167. package/plugin/skills/lit-schematic/scripts/lib/isa.mjs +115 -0
  168. package/plugin/skills/lit-schematic/scripts/lib/iso.mjs +719 -0
  169. package/plugin/skills/lit-schematic/scripts/lib/legend-sheet.mjs +162 -0
  170. package/plugin/skills/lit-schematic/scripts/lib/pid.mjs +937 -0
  171. package/plugin/skills/lit-schematic/scripts/lib/png.mjs +132 -0
  172. package/plugin/skills/lit-schematic/scripts/lib/qa-core.mjs +658 -0
  173. package/plugin/skills/lit-schematic/scripts/lib/route.mjs +218 -0
  174. package/plugin/skills/lit-schematic/scripts/lib/sheet.mjs +890 -0
  175. package/plugin/skills/lit-schematic/scripts/lib/svg.mjs +82 -0
  176. package/plugin/skills/lit-schematic/scripts/lib/theme.mjs +115 -0
  177. package/plugin/skills/lit-schematic/scripts/motion.mjs +129 -0
  178. package/plugin/skills/lit-schematic/scripts/qa.mjs +92 -0
  179. package/plugin/skills/lit-schematic/scripts/render.mjs +233 -0
  180. package/plugin/skills/lit-schematic/scripts/scaffold.mjs +60 -0
  181. package/plugin/skills/lit-scientific-visualization/SKILL.md +17 -6
  182. package/plugin/skills/lit-typographic-motion/SKILL.md +58 -48
  183. package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +13 -2
  184. package/plugin/skills/lit-typographic-motion/engine/blender/runner.py +218 -0
  185. package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +1 -1
  186. package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +65 -1
  187. package/plugin/skills/lit-typographic-motion/engine/node/assets.mjs +298 -0
  188. package/plugin/skills/lit-typographic-motion/engine/node/blender.mjs +143 -0
  189. package/plugin/skills/lit-typographic-motion/engine/node/board.mjs +136 -0
  190. package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +7 -1
  191. package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +9 -12
  192. package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +5 -3
  193. package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +7 -6
  194. package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +37 -4
  195. package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +19 -8
  196. package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +45 -6
  197. package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +7 -5
  198. package/plugin/skills/lit-typographic-motion/engine/node/gallery.mjs +121 -0
  199. package/plugin/skills/lit-typographic-motion/engine/node/host.mjs +34 -0
  200. package/plugin/skills/lit-typographic-motion/engine/node/house.mjs +44 -0
  201. package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +34 -20
  202. package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +19 -9
  203. package/plugin/skills/lit-typographic-motion/engine/node/scaffold.mjs +210 -0
  204. package/plugin/skills/lit-typographic-motion/engine/node/score.mjs +639 -0
  205. package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +21 -4
  206. package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +127 -29
  207. package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +7 -6
  208. package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +59 -5
  209. package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +141 -9
  210. package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +28 -5
  211. package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +82 -14
  212. package/plugin/skills/lit-typographic-motion/engine/node/styles.mjs +213 -0
  213. package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +311 -10
  214. package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +14 -2
  215. package/plugin/skills/lit-typographic-motion/engine/stage/init.js +11 -1
  216. package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +6 -1
  217. package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +83 -0
  218. package/plugin/skills/lit-typographic-motion/engine/vendor/three/LICENSE +21 -0
  219. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +144 -0
  220. package/plugin/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +155 -0
  221. package/plugin/skills/lit-typographic-motion/engine/vendor/three/three.module.js +54571 -0
  222. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/expected.json +69 -0
  223. package/plugin/skills/lit-typographic-motion/recipes/hero-3d/index.html +139 -0
  224. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +6 -4
  225. package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +4 -2
  226. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +7 -5
  227. package/plugin/skills/lit-typographic-motion/references/cover.md +394 -443
  228. package/plugin/skills/lit-typographic-motion/references/craft-loop.md +57 -87
  229. package/plugin/skills/lit-typographic-motion/references/depth.md +122 -0
  230. package/plugin/skills/lit-typographic-motion/references/look.md +94 -129
  231. package/plugin/skills/lit-typographic-motion/references/runtime.md +58 -91
  232. package/plugin/skills/lit-typographic-motion/references/sound.md +130 -99
  233. package/plugin/skills/lit-typographic-motion/references/stage.md +190 -215
  234. package/plugin/skills/lit-typographic-motion/references/studio.md +245 -0
  235. package/plugin/skills/lit-typographic-motion/references/style-bibles.md +108 -97
  236. package/plugin/skills/lit-typographic-motion/references/treatment.md +191 -143
  237. package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +17 -5
  238. package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +47 -7
  239. package/plugin/skills/lit-typographic-motion/styles/paper.json +41 -0
  240. package/plugin/skills/lit-typographic-motion/styles/swiss-signal.json +41 -0
  241. package/plugin/skills/lit-typographic-motion/styles/terminalcore.json +42 -0
  242. package/plugin/skills/lit-typographic-motion/styles/tidal.json +41 -0
  243. package/plugin/skills/litresearch/SKILL.md +1 -0
  244. package/plugin/skills/readme-studio/SKILL.md +2 -0
  245. package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +3 -3
  246. package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
  247. package/plugin/skills/review-work/SKILL.md +1 -1
  248. package/plugin/skills/start-work/SKILL.md +1 -1
@@ -0,0 +1,69 @@
1
+ {
2
+ "schema": "litgravity.motion-cover-recipe/v1",
3
+ "note": "The decoded gate row this recipe reached when it shipped (scripts/qa-cover-recipes.mjs re-renders it and fails when median d or moving leave +-15 %, seamLocal leaves TARGET or bytes pass 2 MiB). Measured 2026-10-25 on headless Chrome's GPU rung (ANGLE Metal, Apple M5 Pro) with three.js r170 and libwebp; 20 fps keeps every frame on the 50 ms gate grid.",
4
+ "row": {
5
+ "medianD": 0.002485,
6
+ "movingFrac": 1,
7
+ "longestStillSec": 0.05,
8
+ "spike": 3.684,
9
+ "seamLocal": 1.199,
10
+ "bytes": 1060856
11
+ },
12
+ "settings": {
13
+ "size": [
14
+ 1000,
15
+ 500
16
+ ],
17
+ "fps": 20,
18
+ "frames": 160,
19
+ "encode": {
20
+ "q": 94,
21
+ "edgeQ": 97,
22
+ "edgeFrames": 15,
23
+ "method": 4
24
+ }
25
+ },
26
+ "treatment": {
27
+ "mode": "cover",
28
+ "request": "A README motion cover for LitGravity with a product object that opens.",
29
+ "idea": "A case turns once and opens on its beat to show the lit core inside, beside a still name.",
30
+ "recipe": "hero-3d",
31
+ "recipeReason": "One object acting once per loop says what the project holds better than a type pattern.",
32
+ "hero": "A rounded case with a hinged lid and a lit core.",
33
+ "beat": "The lid opens, the core rises and settles, and the lid closes.",
34
+ "brandWord": "LITGRAVITY",
35
+ "motto": {
36
+ "text": "KEEP THE WORK LIT.",
37
+ "source": "project",
38
+ "from": "README.md"
39
+ },
40
+ "aspect": "2:1",
41
+ "loopSec": 8,
42
+ "fps": 20,
43
+ "layers": {
44
+ "slow": "The case turns exactly once per loop.",
45
+ "mid": "The camera breathes twice per loop.",
46
+ "beat": "The lid opens on the core and a ring runs out across the floor."
47
+ },
48
+ "system": {
49
+ "rule": "One hinge rule and one turn rule on one object.",
50
+ "copies": "One case, one core, one ring.",
51
+ "offset": "The ring trails the lid by a tenth of the loop."
52
+ },
53
+ "title": {
54
+ "box": [
55
+ 0.05,
56
+ 0.36,
57
+ 0.43,
58
+ 0.14
59
+ ],
60
+ "kind": "live"
61
+ },
62
+ "encode": {
63
+ "q": 94,
64
+ "edgeQ": 97,
65
+ "edgeFrames": 15
66
+ },
67
+ "ambition": "The object reads as a product in a studio and its beat lands once per loop."
68
+ }
69
+ }
@@ -0,0 +1,139 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <!-- Recipe D, hero 3D: one product object, lit in a small studio, acting its beat once per loop. A
6
+ worked example: a rounded case turns exactly once per loop (slow layer), the camera breathes twice
7
+ (mid layer), and once per loop the lid opens, a lit core rises and settles back and the lid closes,
8
+ while a ring runs out across the floor (the beat). The word sits still on the left. Drawn with the
9
+ pinned three.js build on the GPU rung (software when the GPU is missing). Replace the word, the
10
+ motto and the HERO block with the project's own object. -->
11
+ <link rel="stylesheet" href="/lit/fonts.css">
12
+ <script src="/lit/loop-kit.js"></script>
13
+ <script type="importmap">{ "imports": { "three": "/lit/three/three.module.js", "three/addons/": "/lit/three/addons/" } }</script>
14
+ <style>
15
+ html, body { margin: 0; width: 1200px; height: 600px; overflow: hidden; background: #0b0f16; }
16
+ canvas { position: absolute; left: 0; top: 0; width: 1200px; height: 600px; display: block; }
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <canvas id="world"></canvas>
21
+ <canvas id="type" width="2400" height="1200"></canvas>
22
+ <script type="module">
23
+ import * as THREE from "three";
24
+ import { RoomEnvironment } from "three/addons/environments/RoomEnvironment.js";
25
+ import { RoundedBoxGeometry } from "three/addons/geometries/RoundedBoxGeometry.js";
26
+
27
+ const { TAU, clamp, fract, ease } = LitLoop;
28
+ const span = (a, b, t) => clamp((t - a) / (b - a));
29
+ const C = { bg: "#0b0f16", ivory: "#f2efdf", dim: "#8b8f8f", orange: "#ff6337", shell: "#d9d4c4", inner: "#1a2230" };
30
+ const W = 1200, H = 600;
31
+ const AIM = { x: 860, y: 318 };
32
+
33
+ // ---- the world: renderer, studio light, floor ----
34
+ const glCanvas = document.getElementById("world");
35
+ const renderer = new THREE.WebGLRenderer({ canvas: glCanvas, antialias: true, alpha: true, preserveDrawingBuffer: true });
36
+ renderer.setPixelRatio(window.devicePixelRatio);
37
+ renderer.setSize(W, H, false);
38
+ renderer.setClearColor(0x000000, 0);
39
+ renderer.outputColorSpace = THREE.SRGBColorSpace;
40
+ renderer.toneMapping = THREE.ACESFilmicToneMapping;
41
+ renderer.shadowMap.enabled = true;
42
+ renderer.shadowMap.type = THREE.PCFSoftShadowMap;
43
+ const scene = new THREE.Scene();
44
+ scene.environment = new THREE.PMREMGenerator(renderer).fromScene(new RoomEnvironment(), 0.04).texture;
45
+ scene.environmentIntensity = 0.55;
46
+ const cam = new THREE.PerspectiveCamera(30, W / H, 0.1, 60);
47
+ cam.setViewOffset(W, H, W / 2 - AIM.x, H / 2 - AIM.y, W, H);
48
+ const key = new THREE.DirectionalLight(0xffffff, 2.4);
49
+ key.position.set(-3, 6, 4);
50
+ key.castShadow = true;
51
+ key.shadow.mapSize.set(2048, 2048);
52
+ key.shadow.radius = 5;
53
+ key.shadow.bias = -0.0004;
54
+ key.shadow.normalBias = 0.03;
55
+ key.shadow.camera.left = -4; key.shadow.camera.right = 4; key.shadow.camera.top = 4; key.shadow.camera.bottom = -4;
56
+ const rim = new THREE.DirectionalLight(0xffb08f, 1.1);
57
+ rim.position.set(4, 2.5, -5);
58
+ scene.add(key, rim);
59
+ const floor = new THREE.Mesh(new THREE.PlaneGeometry(30, 30), new THREE.ShadowMaterial({ opacity: 0.35 }));
60
+ floor.rotation.x = -Math.PI / 2;
61
+ floor.receiveShadow = true;
62
+ scene.add(floor);
63
+ const ring = new THREE.Mesh(new THREE.RingGeometry(0.98, 1, 128), new THREE.MeshBasicMaterial({ color: C.orange, transparent: true, opacity: 0 }));
64
+ ring.rotation.x = -Math.PI / 2;
65
+ ring.position.y = 0.002;
66
+ scene.add(ring);
67
+
68
+ // ---- HERO: the product object (a case with a hinged lid and a lit core) ----
69
+ const shell = new THREE.MeshPhysicalMaterial({ color: C.shell, roughness: 0.32, metalness: 0.05, clearcoat: 0.6, clearcoatRoughness: 0.2 });
70
+ const inner = new THREE.MeshStandardMaterial({ color: C.inner, roughness: 0.8 });
71
+ const HERO = new THREE.Group();
72
+ const base = new THREE.Mesh(new RoundedBoxGeometry(1.6, 0.62, 1.1, 6, 0.12), shell);
73
+ base.position.y = 0.31;
74
+ const well = new THREE.Mesh(new RoundedBoxGeometry(1.38, 0.5, 0.88, 4, 0.08), inner);
75
+ well.position.y = 0.4;
76
+ const hinge = new THREE.Group();
77
+ hinge.position.set(0, 0.64, -0.55);
78
+ const lid = new THREE.Mesh(new RoundedBoxGeometry(1.6, 0.16, 1.1, 6, 0.07), shell);
79
+ lid.position.set(0, 0.08, 0.55);
80
+ hinge.add(lid);
81
+ const coreMat = new THREE.MeshStandardMaterial({ color: C.orange, emissive: C.orange, emissiveIntensity: 0, roughness: 0.35 });
82
+ const core = new THREE.Mesh(new THREE.IcosahedronGeometry(0.24, 3), coreMat);
83
+ const glow = new THREE.PointLight(C.orange, 0, 4, 2);
84
+ core.add(glow);
85
+ for (const m of [base, lid, core]) m.castShadow = true;
86
+ base.receiveShadow = true;
87
+ HERO.add(base, well, hinge, core);
88
+ scene.add(HERO);
89
+
90
+ // The beat: open 0.28-0.44, hold, close 0.62-0.78; zero at both ends, so the loop closes.
91
+ const openAt = (t) => ease.smooth(span(0.28, 0.44, t)) * (1 - ease.smooth(span(0.62, 0.78, t)));
92
+
93
+ function drawWorld(t) {
94
+ HERO.rotation.y = -0.5 + TAU * t;
95
+ const open = openAt(t);
96
+ hinge.rotation.x = -1.45 * open;
97
+ const rise = ease.outBack(span(0.36, 0.5, t)) * (1 - ease.smooth(span(0.58, 0.7, t)));
98
+ core.position.y = 0.42 + 0.6 * rise;
99
+ core.rotation.y = TAU * 2 * t;
100
+ coreMat.emissiveIntensity = 1.1 * open;
101
+ glow.intensity = 3 * open;
102
+ const wave = ease.outCubic(span(0.38, 0.72, t));
103
+ ring.scale.setScalar(0.9 + 1.3 * wave);
104
+ ring.material.opacity = 0.55 * open * (1 - wave);
105
+ const breathe = Math.sin(TAU * 2 * t);
106
+ cam.position.set(5.8 * Math.sin(0.35), 2.3 + 0.12 * breathe, 5.8 * Math.cos(0.35));
107
+ cam.lookAt(0, 0.62 + 0.04 * breathe, 0);
108
+ renderer.render(scene, cam);
109
+ }
110
+
111
+ // ---- the word, set once ----
112
+ const ctx = document.getElementById("type").getContext("2d");
113
+ ctx.scale(2, 2);
114
+ function drawType(mask) {
115
+ ctx.clearRect(0, 0, W, H);
116
+ if (mask) { ctx.fillStyle = "#000"; ctx.fillRect(0, 0, W, H); }
117
+ ctx.textBaseline = "alphabetic";
118
+ ctx.fillStyle = mask ? "#fff" : C.ivory;
119
+ ctx.font = '800 84px "JetBrains Mono"';
120
+ ctx.fillText("LITGRAVITY", 70, 292);
121
+ if (mask) return;
122
+ ctx.font = '500 18px "JetBrains Mono"';
123
+ ctx.fillStyle = C.dim;
124
+ let mx = 74;
125
+ for (const ch of "KEEP THE WORK ") { ctx.fillText(ch, mx, 338); mx += 19.6; }
126
+ ctx.fillStyle = C.orange;
127
+ ctx.font = '700 18px "JetBrains Mono"';
128
+ for (const ch of "LIT.") { ctx.fillText(ch, mx, 338); mx += 19.6; }
129
+ }
130
+
131
+ window.renderFrame = (t, o = {}) => {
132
+ glCanvas.style.visibility = o.mask ? "hidden" : "visible";
133
+ if (!o.mask) drawWorld(fract(t));
134
+ drawType(Boolean(o.mask));
135
+ };
136
+ document.fonts.load('800 84px "JetBrains Mono"').then(() => document.fonts.load('500 18px "JetBrains Mono"')).then(() => { window.renderFrame(0); window.ready = true; });
137
+ </script>
138
+ </body>
139
+ </html>
@@ -2,12 +2,12 @@
2
2
  "schema": "litgravity.motion-cover-recipe/v1",
3
3
  "note": "The decoded gate row this recipe reached when it shipped (scripts/qa-cover-recipes.mjs re-renders it and fails when median d or moving leave +-15 %, seamLocal leaves TARGET or bytes pass 2 MiB). Measured 2026-10-20 on headless Chrome's software rung and libwebp 1.6.0.",
4
4
  "row": {
5
- "medianD": 0.002671,
5
+ "medianD": 0.002669,
6
6
  "movingFrac": 1,
7
7
  "longestStillSec": 0.05,
8
- "spike": 2.014,
9
- "seamLocal": 1.9,
10
- "bytes": 1348480
8
+ "spike": 2.012,
9
+ "seamLocal": 1.894,
10
+ "bytes": 1344766
11
11
  },
12
12
  "settings": {
13
13
  "size": [
@@ -29,6 +29,8 @@
29
29
  "idea": "Dots lap three rings and every crossing at the gate lights the next cell of a ledger under the name.",
30
30
  "recipe": "orbit-loop",
31
31
  "recipeReason": "A small system beside a still name shows checking without words.",
32
+ "hero": "The dots lapping three rings.",
33
+ "beat": "Each crossing at the gate lights the next ledger cell.",
32
34
  "brandWord": "LITGRAVITY",
33
35
  "motto": {
34
36
  "text": "KEEP THE WORK LIT.",
@@ -23,7 +23,7 @@
23
23
  "method": 4
24
24
  }
25
25
  },
26
- "base": "a 1536x1024 painting supplied as cover/assets/base.png (the row was measured on the LitFamily robot line-up; QA: --base <png>); any other painting needs its own ART block",
26
+ "base": "the five-panel painting at test/fixtures/lit-typographic-motion/cover/painted-light-five-panel.png in the LitGravity repository (1536x1024); the README illustration shows seven machines and is not this base; any painting needs its own ART block",
27
27
  "assets": [
28
28
  {
29
29
  "path": "cover/assets/base.png",
@@ -50,6 +50,8 @@
50
50
  "idea": "A window of work light walks the sleeping bays while the lead robot breathes and a comet laps its frame.",
51
51
  "recipe": "painted-light",
52
52
  "recipeReason": "The painting already carries the brand, so the loop relights it instead of drawing over it.",
53
+ "hero": "The painting the user supplied.",
54
+ "beat": "A light edge sweeps across the painting once per loop.",
53
55
  "brandWord": "LITFAMILY",
54
56
  "aspect": "2:1",
55
57
  "loopSec": 8,
@@ -89,7 +91,7 @@
89
91
  "mustFail": [
90
92
  "G1.target"
91
93
  ],
92
- "defect": "Light drawn as a soft wash: the 24 px light edge widened to 150 px. At this recipe's encode (q83, edge q97 for 18 frames) the encoder keeps the soft edge, so the motion gates read what they read for the recipe itself. The one gate that moves is the 2 MiB size TARGET (about 2.5 to 2.6 MB against 2 063 990 B), so G1.target is the only gate declared; seamLocal wanders 1.91 to 2.01 around the 2.0 TARGET from run to run and stays undeclared. Only look review of the sheet can see the wash itself."
94
+ "defect": "A 150 px soft light edge: the window reads as a soft wash instead of a moving edge. At this recipe's encode (q83, edge q97 for 18 frames) the encoder keeps the soft edge, so no motion gate sees it: 2026-10-20 it measured median d 0.002198, moving 1.0 and seamLocal 2.013 (other ports 1.91-2.01, inside run-to-run noise of the 2.0 TARGET), against 0.002077, 1.0 and 1.965 at 24 px. What it reliably trips is the 2 MiB size TARGET: 2 596 520 B (other ports 2.50-2.59 MB) against 2 063 990 B. The wash itself is caught by look review on the sheet, not by a gate."
93
95
  }
94
96
  }
95
97
  }
@@ -2,12 +2,12 @@
2
2
  "schema": "litgravity.motion-cover-recipe/v1",
3
3
  "note": "The decoded gate row this recipe reached when it shipped (scripts/qa-cover-recipes.mjs re-renders it and fails when median d or moving leave +-15 %, seamLocal leaves TARGET or bytes pass 2 MiB). Measured 2026-10-20 on headless Chrome's software rung and libwebp 1.6.0.",
4
4
  "row": {
5
- "medianD": 0.01022,
5
+ "medianD": 0.009386,
6
6
  "movingFrac": 1,
7
7
  "longestStillSec": 0.063,
8
- "spike": 1.132,
9
- "seamLocal": 1.098,
10
- "bytes": 1558982
8
+ "spike": 1.126,
9
+ "seamLocal": 1.115,
10
+ "bytes": 1416410
11
11
  },
12
12
  "settings": {
13
13
  "size": [
@@ -29,6 +29,8 @@
29
29
  "idea": "A weight wave rolls through the name and through faint rows of it that drift one word per loop.",
30
30
  "recipe": "weight-tide",
31
31
  "recipeReason": "The name is the material, so the motion happens inside the letters.",
32
+ "hero": "The brand word, set as rows of type.",
33
+ "beat": "A swell of weight crosses the rows once per loop.",
32
34
  "brandWord": "LITGRAVITY",
33
35
  "motto": {
34
36
  "text": "KEEP THE WORK LIT.",
@@ -45,7 +47,7 @@
45
47
  },
46
48
  "system": {
47
49
  "rule": "Letter weight is a gain-shaped swell of the loop phase.",
48
- "copies": "About 600 background letters and the ten hero letters.",
50
+ "copies": "About 600 background letters and the nine hero letters.",
49
51
  "offset": "0.85 x / W + 0.35 y / H plus a little loop noise per row."
50
52
  },
51
53
  "title": {