sera-code 0.1.2 → 0.1.4

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 (333) hide show
  1. package/README.md +9 -1
  2. package/bin/sera.mjs +31 -0
  3. package/dist/bundle/chunks/{chunk-LOMPDCMP.js → chunk-DFRGGJWV.js} +1 -1
  4. package/dist/bundle/chunks/{chunk-AZC5WTED.js → chunk-EMXTNOOJ.js} +5 -5
  5. package/dist/bundle/chunks/{chunk-KXU77PUU.js → chunk-ET2ARYK4.js} +1 -1
  6. package/dist/bundle/chunks/{chunk-ZNCN2NGY.js → chunk-G5BGS7HZ.js} +2 -2
  7. package/dist/bundle/chunks/{chunk-HODJBMOY.js → chunk-GSGPISRE.js} +3 -4
  8. package/dist/bundle/chunks/{chunk-46WGNYIE.js → chunk-NMUS7OCP.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-HQBQWHLD.js → chunk-RCQXVPCE.js} +1 -1
  10. package/dist/bundle/chunks/{cli-MML2DU4A.js → cli-NOCFT7AL.js} +1 -1
  11. package/dist/bundle/chunks/{execute-HXDNZ26B.js → execute-S2O3RL6V.js} +1 -1
  12. package/dist/bundle/chunks/github-copilot.js +1 -1
  13. package/dist/bundle/chunks/{runtime-JAH75CB5.js → runtime-BRT7AUXY.js} +1 -1
  14. package/dist/bundle/chunks/{virtual-modules-Z2V3PTLI.js → virtual-modules-QR2XYBMY.js} +1 -1
  15. package/dist/bundle/cli-runtime.js +1 -1
  16. package/dist/bundle/index.js +1 -1
  17. package/dist/bundle/rpc-entry.js +1 -1
  18. package/lib/postinstall.js +16 -0
  19. package/lib/update.js +85 -0
  20. package/lib/win-setup.js +96 -0
  21. package/package.json +4 -1
  22. package/sera-core/skills/ambalaj-tasarim/NOTICE +1 -0
  23. package/sera-core/skills/ambalaj-tasarim/SKILL.md +34 -0
  24. package/sera-core/skills/ambalaj-tasarim/dieline.mjs +17 -0
  25. package/sera-core/skills/ambalaj-tasarim/sera-pack.js +535 -0
  26. package/sera-core/skills/animasyonlu-site/NOTICE +1 -0
  27. package/sera-core/skills/animasyonlu-site/SKILL.md +26 -0
  28. package/sera-core/skills/animasyonlu-site/sera-motion.js +310 -0
  29. package/sera-core/skills/animate/LICENSE +21 -0
  30. package/sera-core/skills/animate/NOTICE +2 -0
  31. package/sera-core/skills/animate/RECIPES.md +324 -0
  32. package/sera-core/skills/animate/SKILL.md +209 -0
  33. package/sera-core/skills/astryx-ui/SKILL.md +37 -0
  34. package/sera-core/skills/awwwards/LICENSE +21 -0
  35. package/sera-core/skills/awwwards/NOTICE +5 -0
  36. package/sera-core/skills/awwwards/SKILL.md +357 -0
  37. package/sera-core/skills/awwwards/references/anatomy.md +103 -0
  38. package/sera-core/skills/awwwards/references/art-direction.md +114 -0
  39. package/sera-core/skills/awwwards/references/astro.md +235 -0
  40. package/sera-core/skills/awwwards/references/concepts.md +110 -0
  41. package/sera-core/skills/awwwards/references/content.md +88 -0
  42. package/sera-core/skills/awwwards/references/engine.md +751 -0
  43. package/sera-core/skills/awwwards/references/layout.md +81 -0
  44. package/sera-core/skills/awwwards/references/motion.md +463 -0
  45. package/sera-core/skills/awwwards/references/nextjs.md +386 -0
  46. package/sera-core/skills/awwwards/references/patterns.md +123 -0
  47. package/sera-core/skills/awwwards/references/quality-bar.md +151 -0
  48. package/sera-core/skills/awwwards/references/quality.md +91 -0
  49. package/sera-core/skills/awwwards/references/ship.md +36 -0
  50. package/sera-core/skills/awwwards/references/typography.md +135 -0
  51. package/sera-core/skills/awwwards/references/webgl.md +430 -0
  52. package/sera-core/skills/awwwards/scripts/audit.mjs +243 -0
  53. package/sera-core/skills/awwwards/scripts/browser.mjs +54 -0
  54. package/sera-core/skills/awwwards/scripts/font.mjs +87 -0
  55. package/sera-core/skills/awwwards/scripts/og.mjs +20 -0
  56. package/sera-core/skills/awwwards/scripts/photos.mjs +65 -0
  57. package/sera-core/skills/awwwards/scripts/serve.mjs +48 -0
  58. package/sera-core/skills/awwwards/scripts/shoot.mjs +675 -0
  59. package/sera-core/skills/beceri-yaz/SKILL.md +39 -0
  60. package/sera-core/skills/brag-slim/LICENSE +21 -0
  61. package/sera-core/skills/brag-slim/NOTICE +2 -0
  62. package/sera-core/skills/brag-slim/SKILL.md +108 -0
  63. package/sera-core/skills/brainstorming/LICENSE +21 -0
  64. package/sera-core/skills/brainstorming/NOTICE +5 -0
  65. package/sera-core/skills/brainstorming/SKILL.md +298 -0
  66. package/sera-core/skills/brainstorming/builder-check-prompt.md +23 -0
  67. package/sera-core/skills/copywriting/LICENSE +21 -0
  68. package/sera-core/skills/copywriting/NOTICE +5 -0
  69. package/sera-core/skills/copywriting/SKILL.md +343 -0
  70. package/sera-core/skills/copywriting/references/ai-tells.md +309 -0
  71. package/sera-core/skills/copywriting/references/copy-frameworks.md +432 -0
  72. package/sera-core/skills/copywriting/references/natural-transitions.md +256 -0
  73. package/sera-core/skills/cro/LICENSE +21 -0
  74. package/sera-core/skills/cro/NOTICE +5 -0
  75. package/sera-core/skills/cro/SKILL.md +198 -0
  76. package/sera-core/skills/cro/references/experiments.md +248 -0
  77. package/sera-core/skills/cro/references/form.md +422 -0
  78. package/sera-core/skills/derin-arastirma/referanslar/arastirma-yontem.md +11 -0
  79. package/sera-core/skills/emil-design-eng/LICENSE +21 -0
  80. package/sera-core/skills/emil-design-eng/NOTICE +2 -0
  81. package/sera-core/skills/emil-design-eng/SKILL.md +684 -0
  82. package/sera-core/skills/frontend-design/LICENSE.txt +177 -0
  83. package/sera-core/skills/frontend-design/NOTICE +2 -0
  84. package/sera-core/skills/frontend-design/SKILL.md +71 -0
  85. package/sera-core/skills/gorsel-denetim/SKILL.md +30 -0
  86. package/sera-core/skills/hallmark/LICENSE +21 -0
  87. package/sera-core/skills/hallmark/NOTICE +5 -0
  88. package/sera-core/skills/hallmark/SKILL.md +154 -0
  89. package/sera-core/skills/hallmark/references/anatomy.md +71 -0
  90. package/sera-core/skills/hallmark/references/brand-truth.md +40 -0
  91. package/sera-core/skills/hallmark/references/comp.md +104 -0
  92. package/sera-core/skills/hallmark/references/craft.md +116 -0
  93. package/sera-core/skills/hallmark/references/dark-mode.md +49 -0
  94. package/sera-core/skills/hallmark/references/data-viz.md +48 -0
  95. package/sera-core/skills/hallmark/references/design-md.md +53 -0
  96. package/sera-core/skills/hallmark/references/direction.md +52 -0
  97. package/sera-core/skills/hallmark/references/export-formats.md +80 -0
  98. package/sera-core/skills/hallmark/references/flow.md +131 -0
  99. package/sera-core/skills/hallmark/references/fonts.md +58 -0
  100. package/sera-core/skills/hallmark/references/gates.md +243 -0
  101. package/sera-core/skills/hallmark/references/genres/atmospheric.md +24 -0
  102. package/sera-core/skills/hallmark/references/genres/editorial.md +24 -0
  103. package/sera-core/skills/hallmark/references/genres/modern-minimal.md +24 -0
  104. package/sera-core/skills/hallmark/references/genres/playful.md +24 -0
  105. package/sera-core/skills/hallmark/references/imagery.md +99 -0
  106. package/sera-core/skills/hallmark/references/interaction-and-states.md +89 -0
  107. package/sera-core/skills/hallmark/references/layout.md +104 -0
  108. package/sera-core/skills/hallmark/references/macrostructures/01-bento-grid.md +21 -0
  109. package/sera-core/skills/hallmark/references/macrostructures/02-long-document.md +35 -0
  110. package/sera-core/skills/hallmark/references/macrostructures/03-marquee-hero.md +21 -0
  111. package/sera-core/skills/hallmark/references/macrostructures/04-stat-led.md +21 -0
  112. package/sera-core/skills/hallmark/references/macrostructures/05-workbench.md +21 -0
  113. package/sera-core/skills/hallmark/references/macrostructures/06-conversational-faq.md +28 -0
  114. package/sera-core/skills/hallmark/references/macrostructures/07-manifesto.md +28 -0
  115. package/sera-core/skills/hallmark/references/macrostructures/08-photographic.md +21 -0
  116. package/sera-core/skills/hallmark/references/macrostructures/09-quote-led.md +21 -0
  117. package/sera-core/skills/hallmark/references/macrostructures/10-specimen.md +21 -0
  118. package/sera-core/skills/hallmark/references/macrostructures/11-catalogue.md +21 -0
  119. package/sera-core/skills/hallmark/references/macrostructures/12-letter.md +21 -0
  120. package/sera-core/skills/hallmark/references/macrostructures/13-index-first.md +21 -0
  121. package/sera-core/skills/hallmark/references/macrostructures/14-narrative-workflow.md +21 -0
  122. package/sera-core/skills/hallmark/references/macrostructures/15-split-studio.md +21 -0
  123. package/sera-core/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
  124. package/sera-core/skills/hallmark/references/macrostructures/17-type-specimen.md +19 -0
  125. package/sera-core/skills/hallmark/references/macrostructures/18-portfolio-grid.md +21 -0
  126. package/sera-core/skills/hallmark/references/macrostructures/19-map-diagram.md +21 -0
  127. package/sera-core/skills/hallmark/references/macrostructures/20-ecosystem-index.md +19 -0
  128. package/sera-core/skills/hallmark/references/macrostructures/21-component-playground.md +21 -0
  129. package/sera-core/skills/hallmark/references/macrostructures.md +119 -0
  130. package/sera-core/skills/hallmark/references/microinteractions.md +80 -0
  131. package/sera-core/skills/hallmark/references/patterns.md +202 -0
  132. package/sera-core/skills/hallmark/references/redesign.md +88 -0
  133. package/sera-core/skills/hallmark/references/responsive.md +46 -0
  134. package/sera-core/skills/hallmark/references/review-finish.md +19 -0
  135. package/sera-core/skills/hallmark/references/review-hero.md +20 -0
  136. package/sera-core/skills/hallmark/references/scroll-choreography.md +110 -0
  137. package/sera-core/skills/hallmark/references/texture.md +90 -0
  138. package/sera-core/skills/hallmark/references/themes/README.md +58 -0
  139. package/sera-core/skills/hallmark/references/themes/almanac.md +103 -0
  140. package/sera-core/skills/hallmark/references/themes/arcade.md +102 -0
  141. package/sera-core/skills/hallmark/references/themes/atelier.md +98 -0
  142. package/sera-core/skills/hallmark/references/themes/bloom.md +102 -0
  143. package/sera-core/skills/hallmark/references/themes/blueprint.md +103 -0
  144. package/sera-core/skills/hallmark/references/themes/broadside.md +108 -0
  145. package/sera-core/skills/hallmark/references/themes/brutal.md +95 -0
  146. package/sera-core/skills/hallmark/references/themes/carnival.md +104 -0
  147. package/sera-core/skills/hallmark/references/themes/cobalt.md +101 -0
  148. package/sera-core/skills/hallmark/references/themes/console.md +99 -0
  149. package/sera-core/skills/hallmark/references/themes/coral.md +102 -0
  150. package/sera-core/skills/hallmark/references/themes/darkroom.md +99 -0
  151. package/sera-core/skills/hallmark/references/themes/dose.md +98 -0
  152. package/sera-core/skills/hallmark/references/themes/dusk.md +105 -0
  153. package/sera-core/skills/hallmark/references/themes/editorial.md +97 -0
  154. package/sera-core/skills/hallmark/references/themes/formwork.md +107 -0
  155. package/sera-core/skills/hallmark/references/themes/furrow.md +98 -0
  156. package/sera-core/skills/hallmark/references/themes/garden.md +97 -0
  157. package/sera-core/skills/hallmark/references/themes/grid.md +101 -0
  158. package/sera-core/skills/hallmark/references/themes/halftone.md +106 -0
  159. package/sera-core/skills/hallmark/references/themes/hedgerow.md +104 -0
  160. package/sera-core/skills/hallmark/references/themes/hum.md +99 -0
  161. package/sera-core/skills/hallmark/references/themes/ink.md +106 -0
  162. package/sera-core/skills/hallmark/references/themes/kiln.md +108 -0
  163. package/sera-core/skills/hallmark/references/themes/loom.md +106 -0
  164. package/sera-core/skills/hallmark/references/themes/lumen.md +103 -0
  165. package/sera-core/skills/hallmark/references/themes/manifesto.md +101 -0
  166. package/sera-core/skills/hallmark/references/themes/midnight.md +97 -0
  167. package/sera-core/skills/hallmark/references/themes/newsprint.md +102 -0
  168. package/sera-core/skills/hallmark/references/themes/overprint.md +101 -0
  169. package/sera-core/skills/hallmark/references/themes/pasteup.md +100 -0
  170. package/sera-core/skills/hallmark/references/themes/piste.md +99 -0
  171. package/sera-core/skills/hallmark/references/themes/refract.md +101 -0
  172. package/sera-core/skills/hallmark/references/themes/ribbon.md +106 -0
  173. package/sera-core/skills/hallmark/references/themes/rim.md +96 -0
  174. package/sera-core/skills/hallmark/references/themes/riso.md +98 -0
  175. package/sera-core/skills/hallmark/references/themes/solstice.md +104 -0
  176. package/sera-core/skills/hallmark/references/themes/specimen.md +100 -0
  177. package/sera-core/skills/hallmark/references/themes/spore.md +104 -0
  178. package/sera-core/skills/hallmark/references/themes/sport.md +101 -0
  179. package/sera-core/skills/hallmark/references/themes/squeeze.md +99 -0
  180. package/sera-core/skills/hallmark/references/themes/sticker.md +106 -0
  181. package/sera-core/skills/hallmark/references/themes/studio.md +99 -0
  182. package/sera-core/skills/hallmark/references/themes/terminal.md +96 -0
  183. package/sera-core/skills/hallmark/references/themes/terrazzo.md +106 -0
  184. package/sera-core/skills/hallmark/references/themes/ultraviolet.md +106 -0
  185. package/sera-core/skills/hallmark/references/themes/vantage.md +99 -0
  186. package/sera-core/skills/hallmark/references/themes/vellum.md +105 -0
  187. package/sera-core/skills/hallmark/references/themes/wayfind.md +105 -0
  188. package/sera-core/skills/hallmark/references/themes/werkstatt.md +105 -0
  189. package/sera-core/skills/hallmark/scripts/capture.mjs +132 -0
  190. package/sera-core/skills/hallmark/scripts/refcheck.mjs +405 -0
  191. package/sera-core/skills/hallmark/scripts/sloplint-render.mjs +1283 -0
  192. package/sera-core/skills/hallmark/scripts/sloplint.mjs +4426 -0
  193. package/sera-core/skills/hallmark/scripts/theme.mjs +660 -0
  194. package/sera-core/skills/kurum-ici-iletisim/SKILL.md +40 -0
  195. package/sera-core/skills/launch/LICENSE +21 -0
  196. package/sera-core/skills/launch/NOTICE +5 -0
  197. package/sera-core/skills/launch/SKILL.md +385 -0
  198. package/sera-core/skills/launch/references/shipped-changes.md +84 -0
  199. package/sera-core/skills/launch/references/site-launch-qa.md +57 -0
  200. package/sera-core/skills/marka-kimligi/SKILL.md +30 -0
  201. package/sera-core/skills/mcp-yaz/SKILL.md +41 -0
  202. package/sera-core/skills/mobil-arayuz/SKILL.md +12 -0
  203. package/sera-core/skills/mvp-scoping/LICENSE +21 -0
  204. package/sera-core/skills/mvp-scoping/NOTICE +5 -0
  205. package/sera-core/skills/mvp-scoping/SKILL.md +95 -0
  206. package/sera-core/skills/ortak-yazarlik/SKILL.md +32 -0
  207. package/sera-core/skills/oyun-turleri/SKILL.md +176 -0
  208. package/sera-core/skills/paralel-sadelestirme/SKILL.md +33 -0
  209. package/sera-core/skills/phaser-core/LICENSE +201 -0
  210. package/sera-core/skills/phaser-core/NOTICE +5 -0
  211. package/sera-core/skills/phaser-core/NOTICE-UPSTREAM +15 -0
  212. package/sera-core/skills/phaser-core/SKILL.md +245 -0
  213. package/sera-core/skills/phaser-core/references/scene-flow.md +177 -0
  214. package/sera-core/skills/pitch-deck/LICENSE +21 -0
  215. package/sera-core/skills/pitch-deck/NOTICE +5 -0
  216. package/sera-core/skills/pitch-deck/SKILL.md +103 -0
  217. package/sera-core/skills/sera-3d-oyun/NOTICE +1 -0
  218. package/sera-core/skills/sera-3d-oyun/SKILL.md +12 -0
  219. package/sera-core/skills/sera-3d-oyun/sera-3d.js +3697 -0
  220. package/sera-core/skills/sera-diyagram/SKILL.md +43 -0
  221. package/sera-core/skills/sera-ofis-dosya/SKILL.md +3 -0
  222. package/sera-core/skills/sera-ofis-dosya/referanslar/ofis-ileri.md +46 -0
  223. package/sera-core/skills/sera-ui-site/NOTICE +1 -0
  224. package/sera-core/skills/sera-ui-site/SKILL.md +10 -0
  225. package/sera-core/skills/sera-ui-site/sera-ui.js +83 -0
  226. package/sera-core/skills/sera-veri-gorsel/SKILL.md +3 -0
  227. package/sera-core/skills/sera-veri-gorsel/referanslar/palet-dogrula.mjs +80 -0
  228. package/sera-core/skills/sistem-tarama/SKILL.md +49 -0
  229. package/sera-core/skills/sistem-tarama/referanslar/komutlar.md +78 -0
  230. package/sera-core/skills/tasarim-stilleri/SKILL.md +113 -0
  231. package/sera-core/skills/teardown/LICENSE +22 -0
  232. package/sera-core/skills/teardown/NOTICE +3 -0
  233. package/sera-core/skills/teardown/SKILL.md +144 -0
  234. package/sera-core/skills/teardown/package-lock.json +545 -0
  235. package/sera-core/skills/teardown/package.json +18 -0
  236. package/sera-core/skills/teardown/paths.mjs +30 -0
  237. package/sera-core/skills/teardown/run_sfx.py +10 -0
  238. package/sera-core/skills/teardown/sfx/__init__.py +10 -0
  239. package/sera-core/skills/teardown/sfx/__main__.py +64 -0
  240. package/sera-core/skills/teardown/sfx/dsp.py +453 -0
  241. package/sera-core/skills/teardown/sfx/loudness.py +72 -0
  242. package/sera-core/skills/teardown/sfx/mix.py +111 -0
  243. package/sera-core/skills/teardown/sfx/samples/SOURCES.md +23 -0
  244. package/sera-core/skills/teardown/sfx/samples/fs-258269-mouth-pop.ogg +0 -0
  245. package/sera-core/skills/teardown/sfx/samples/fs-323432-typing.ogg +0 -0
  246. package/sera-core/skills/teardown/sfx/samples/fs-329533-room-tone-in-an-apartment-livi.ogg +0 -0
  247. package/sera-core/skills/teardown/sfx/samples/fs-329569-roomtone-bedroom-yew.ogg +0 -0
  248. package/sera-core/skills/teardown/sfx/samples/fs-339521-vhs-rewind-forward-and-eject.ogg +0 -0
  249. package/sera-core/skills/teardown/sfx/samples/fs-349504-triangle-open-04.ogg +0 -0
  250. package/sera-core/skills/teardown/sfx/samples/fs-416777-digital-typing-wav.ogg +0 -0
  251. package/sera-core/skills/teardown/sfx/samples/fs-426767-apartment-room-tone-wav.ogg +0 -0
  252. package/sera-core/skills/teardown/sfx/samples/fs-447909-keyboard-typing.ogg +0 -0
  253. package/sera-core/skills/teardown/sfx/samples/fs-447910-plop.ogg +0 -0
  254. package/sera-core/skills/teardown/sfx/samples/fs-79388-keyboard-typing-wav.ogg +0 -0
  255. package/sera-core/skills/teardown/sfx/samples/fs-824189-pop-in-sfx.ogg +0 -0
  256. package/sera-core/skills/teardown/sfx/score_kit.py +206 -0
  257. package/sera-core/skills/teardown/sfx/synth.py +294 -0
  258. package/sera-core/skills/teardown/sheet.mjs +127 -0
  259. package/sera-core/skills/teardown/sims/beats.py +212 -0
  260. package/sera-core/skills/teardown/sims/build.mjs +141 -0
  261. package/sera-core/skills/teardown/sims/capture.mjs +211 -0
  262. package/sera-core/skills/teardown/sims/cessna-film/main.js +4 -0
  263. package/sera-core/skills/teardown/sims/cessna-film/timeline.json +1 -0
  264. package/sera-core/skills/teardown/sims/cessna-live/main.js +5 -0
  265. package/sera-core/skills/teardown/sims/cessna-shared/console.js +288 -0
  266. package/sera-core/skills/teardown/sims/cessna-shared/film.js +254 -0
  267. package/sera-core/skills/teardown/sims/cessna-shared/flight.js +53 -0
  268. package/sera-core/skills/teardown/sims/cessna-shared/gear.js +364 -0
  269. package/sera-core/skills/teardown/sims/cessna-shared/live.js +351 -0
  270. package/sera-core/skills/teardown/sims/cessna-shared/score.py +41 -0
  271. package/sera-core/skills/teardown/sims/cessna-shared/stage.js +248 -0
  272. package/sera-core/skills/teardown/sims/kit/director.js +300 -0
  273. package/sera-core/skills/teardown/sims/kit/hud.js +194 -0
  274. package/sera-core/skills/teardown/sims/kit/runtime.js +168 -0
  275. package/sera-core/skills/teardown/sims/kit/stage3d.js +114 -0
  276. package/sera-core/skills/teardown/sims/kit/style.css +137 -0
  277. package/sera-core/skills/teardown/sims/kit/util.js +79 -0
  278. package/sera-core/skills/teardown/sims/kit/warm.js +66 -0
  279. package/sera-core/skills/teardown/sims/strandbeest-film/main.js +4 -0
  280. package/sera-core/skills/teardown/sims/strandbeest-film/timeline.json +1 -0
  281. package/sera-core/skills/teardown/sims/strandbeest-live/main.js +5 -0
  282. package/sera-core/skills/teardown/sims/strandbeest-shared/beast.js +419 -0
  283. package/sera-core/skills/teardown/sims/strandbeest-shared/console.js +375 -0
  284. package/sera-core/skills/teardown/sims/strandbeest-shared/film.js +352 -0
  285. package/sera-core/skills/teardown/sims/strandbeest-shared/jansen.js +67 -0
  286. package/sera-core/skills/teardown/sims/strandbeest-shared/live.js +420 -0
  287. package/sera-core/skills/teardown/sims/strandbeest-shared/score.py +85 -0
  288. package/sera-core/skills/teardown/sims/strandbeest-shared/stage.js +463 -0
  289. package/sera-core/skills/teardown/sims/v8-film/main.js +4 -0
  290. package/sera-core/skills/teardown/sims/v8-film/timeline.json +1 -0
  291. package/sera-core/skills/teardown/sims/v8-live/main.js +5 -0
  292. package/sera-core/skills/teardown/sims/v8-shared/console.js +339 -0
  293. package/sera-core/skills/teardown/sims/v8-shared/engine.js +624 -0
  294. package/sera-core/skills/teardown/sims/v8-shared/film.js +239 -0
  295. package/sera-core/skills/teardown/sims/v8-shared/kin.js +86 -0
  296. package/sera-core/skills/teardown/sims/v8-shared/live.js +374 -0
  297. package/sera-core/skills/teardown/sims/v8-shared/score.py +60 -0
  298. package/sera-core/skills/teardown/sims/v8-shared/stage.js +173 -0
  299. package/sera-core/skills/teardown/wave.mjs +67 -0
  300. package/sera-core/skills/toplu-degisiklik/SKILL.md +39 -0
  301. package/sera-core/skills/ui-ux-pro-max/LICENSE +21 -0
  302. package/sera-core/skills/ui-ux-pro-max/NOTICE +5 -0
  303. package/sera-core/skills/ui-ux-pro-max/SKILL.md +13 -0
  304. package/sera-core/skills/ui-ux-pro-max/references/pro-rules.md +117 -0
  305. package/sera-core/skills/ui-ux-pro-max/references/quick-reference.md +266 -0
  306. package/sera-core/skills/unslop/LICENSE.md +410 -0
  307. package/sera-core/skills/unslop/SKILL.md +217 -0
  308. package/sera-core/skills/unslop/references/effects.md +113 -0
  309. package/sera-core/skills/unslop/references/refs/unslop-dashboard-after.webp +0 -0
  310. package/sera-core/skills/unslop/references/refs/unslop-hero-after.webp +0 -0
  311. package/sera-core/skills/unslop/references/refs.md +16 -0
  312. package/sera-core/skills/unslop/references/rtl.md +72 -0
  313. package/sera-core/skills/unslop/references/signs.md +125 -0
  314. package/sera-core/skills/unslop/references/tokens.md +137 -0
  315. package/sera-core/skills/unslop/references/visuals.md +84 -0
  316. package/sera-core/skills/unslop/scripts/snapshot.mjs +197 -0
  317. package/sera-core/skills/uretken-sanat/SKILL.md +42 -0
  318. package/sera-core/skills/verification-before-completion/LICENSE +21 -0
  319. package/sera-core/skills/verification-before-completion/NOTICE +5 -0
  320. package/sera-core/skills/verification-before-completion/SKILL.md +120 -0
  321. package/sera-core/skills/web-yayin-listesi/SKILL.md +3 -0
  322. package/sera-core/src/app-master.ts +2 -2
  323. package/sera-core/src/app-verify.ts +33 -0
  324. package/sera-core/src/auto-memory.ts +249 -0
  325. package/sera-core/src/extension.ts +69 -3
  326. package/sera-core/src/generated/build-rules.ts +81 -17
  327. package/sera-core/src/generated/quality-probe.ts +2 -0
  328. package/sera-core/src/generated/zero-knowledge.ts +36 -9
  329. package/sera-core/src/image-tool.ts +124 -7
  330. package/sera-core/src/link-data-tools.ts +411 -0
  331. package/sera-core/src/skills.ts +54 -18
  332. package/sera-core/src/video-tool.ts +51 -0
  333. package/sera-core/src/zk.ts +7 -3
@@ -0,0 +1,364 @@
1
+ // The Cessna 337 main landing gear, built from code in metres: the white main plate with its channel rails, the
2
+ // hydraulic actuator on top, the rod-end connector and the brass gear rack, the pinion on a transverse rotary output
3
+ // shaft, a clevis (universal) joint at each end, the side tubes that spin about their own axis, the orange spring
4
+ // legs and the wheels. One degree of freedom: stroke 0..1 moves the rack 201 mm, turns the pinion 180°, and the side
5
+ // tubes carry the legs through the same 180° about their own axes. The right gear is built once; the left one is its
6
+ // mirror (scale.x = -1).
7
+ import * as THREE from 'three';
8
+ import {RoundedBoxGeometry} from 'three/addons/geometries/RoundedBoxGeometry.js';
9
+
10
+ const V3 = THREE.Vector3;
11
+ export const G = {
12
+ pinionR: 0.064, // 32 teeth, 4 mm module
13
+ stroke: 0.201, // rack travel for a full 180°
14
+ wheelR: 0.205,
15
+ wheelW: 0.135,
16
+ shaftY: -0.1365,
17
+ jointX: 0.22,
18
+ tubeLen: 0.3,
19
+ legLen: 0.5,
20
+ };
21
+ const norm = (v) => v.clone().normalize();
22
+ // the side tube's axis (outboard, down, aft) and the spring leg's direction when down and locked: half a turn about
23
+ // that axis carries the wheel from a wide stance on the runway to a pocket beside the plate, level with it, aft
24
+ export const AXIS = norm(new V3(1, -0.6, -1));
25
+ export const LEG0 = norm(new V3(1, -1, 0.8));
26
+ export const J = new V3(G.jointX, G.shaftY, 0);
27
+ export const E0 = J.clone().addScaledVector(AXIS, G.tubeLen);
28
+ export const TIP0 = E0.clone().addScaledVector(LEG0, G.legLen);
29
+ /** where the wheel centre is (right gear, assembly frame) at gear angle th (radians) */
30
+ export const tipAt = (th) => TIP0.clone().sub(J).applyAxisAngle(AXIS, th).add(J);
31
+ /** the assembly's height above the ground when down and locked: the tyre touches the runway */
32
+ export const GROUND = -(TIP0.y - G.wheelR);
33
+
34
+ // ------------------------------------------------------------ geometry
35
+ function gearGeo(teeth, rp, width, holeR = 0) {
36
+ const ra = rp + 0.004;
37
+ const rr = rp - 0.005;
38
+ const sh = new THREE.Shape();
39
+ for (let i = 0; i < teeth; i++) {
40
+ const a0 = (i / teeth) * Math.PI * 2;
41
+ const da = (Math.PI * 2) / teeth;
42
+ const pts = [[rr, a0], [rr, a0 + da * 0.18], [ra, a0 + da * 0.34], [ra, a0 + da * 0.6], [rr, a0 + da * 0.76]];
43
+ pts.forEach(([r, a], k) => (i === 0 && k === 0 ? sh.moveTo(r * Math.cos(a), r * Math.sin(a)) : sh.lineTo(r * Math.cos(a), r * Math.sin(a))));
44
+ }
45
+ sh.closePath();
46
+ if (holeR) {
47
+ const h = new THREE.Path();
48
+ h.absarc(0, 0, holeR, 0, Math.PI * 2, true);
49
+ sh.holes.push(h);
50
+ }
51
+ const g = new THREE.ExtrudeGeometry(sh, {depth: width, bevelEnabled: true, bevelThickness: 0.002, bevelSize: 0.0015, bevelSegments: 1, curveSegments: 4});
52
+ g.translate(0, 0, -width / 2);
53
+ return g;
54
+ }
55
+ function rackGeo(len, w, h, pitch) {
56
+ // a bar along z with teeth on its underside
57
+ const sh = new THREE.Shape();
58
+ sh.moveTo(-len / 2, h / 2);
59
+ sh.lineTo(len / 2, h / 2);
60
+ sh.lineTo(len / 2, -h / 2);
61
+ const n = Math.floor(len / pitch);
62
+ for (let i = n - 1; i >= 0; i--) {
63
+ const z0 = -len / 2 + i * pitch;
64
+ sh.lineTo(z0 + pitch * 0.78, -h / 2);
65
+ sh.lineTo(z0 + pitch * 0.62, -h / 2 - 0.008);
66
+ sh.lineTo(z0 + pitch * 0.38, -h / 2 - 0.008);
67
+ sh.lineTo(z0 + pitch * 0.22, -h / 2);
68
+ }
69
+ sh.lineTo(-len / 2, -h / 2);
70
+ sh.closePath();
71
+ const g = new THREE.ExtrudeGeometry(sh, {depth: w, bevelEnabled: true, bevelThickness: 0.002, bevelSize: 0.002, bevelSegments: 1});
72
+ g.translate(0, 0, -w / 2);
73
+ // shape x -> world z, shape y -> world y, depth -> world x
74
+ g.rotateY(-Math.PI / 2);
75
+ return g;
76
+ }
77
+ // the plate's plan form (x lateral, z fore-aft), extruded down by its thickness
78
+ function plateGeo() {
79
+ const sh = new THREE.Shape();
80
+ const P = [
81
+ [-0.12, 0.62], [0.12, 0.62], [0.14, 0.32], [0.42, 0.22], [0.46, 0.12], [0.44, -0.06], [0.16, -0.16],
82
+ [0.14, -0.78], [-0.14, -0.78], [-0.16, -0.16], [-0.44, -0.06], [-0.46, 0.12], [-0.42, 0.22], [-0.14, 0.32],
83
+ ];
84
+ P.forEach(([x, z], i) => (i ? sh.lineTo(x, z) : sh.moveTo(x, z)));
85
+ sh.closePath();
86
+ const g = new THREE.ExtrudeGeometry(sh, {depth: 0.026, bevelEnabled: true, bevelThickness: 0.004, bevelSize: 0.006, bevelSegments: 2});
87
+ g.rotateX(Math.PI / 2);
88
+ return g;
89
+ }
90
+ // a channel rail along z with lightening holes, its profile an upright plate
91
+ function railGeo(len, h) {
92
+ const sh = new THREE.Shape();
93
+ sh.moveTo(-len / 2, 0);
94
+ sh.lineTo(len / 2, 0);
95
+ sh.lineTo(len / 2, h * 0.7);
96
+ sh.lineTo(len / 2 - 0.04, h);
97
+ sh.lineTo(-len / 2 + 0.04, h);
98
+ sh.lineTo(-len / 2, h * 0.7);
99
+ sh.closePath();
100
+ for (let i = 0; i < 6; i++) {
101
+ const hole = new THREE.Path();
102
+ hole.absarc(-len / 2 + 0.14 + i * ((len - 0.28) / 5), h * 0.48, h * 0.22, 0, Math.PI * 2, true);
103
+ sh.holes.push(hole);
104
+ }
105
+ const g = new THREE.ExtrudeGeometry(sh, {depth: 0.012, bevelEnabled: true, bevelThickness: 0.002, bevelSize: 0.002, bevelSegments: 1, curveSegments: 18});
106
+ g.translate(0, 0, -0.006);
107
+ g.rotateY(-Math.PI / 2);
108
+ return g;
109
+ }
110
+ // the spring leg: a flat orange bar swept from the tube end to the axle, outboard first and then down
111
+ function legGeo() {
112
+ const tip = TIP0.clone().sub(E0);
113
+ const out = new V3(1, 0, 0);
114
+ const pts = [new V3(0, 0, 0), out.clone().multiplyScalar(0.12).add(new V3(0, -0.02, 0.02)), tip.clone().multiplyScalar(0.55).add(out.clone().multiplyScalar(0.1)), tip.clone().add(new V3(-0.02, 0.0, 0))];
115
+ const curve = new THREE.CatmullRomCurve3(pts);
116
+ const sh = new THREE.Shape();
117
+ sh.moveTo(-0.048, -0.014);
118
+ sh.lineTo(0.048, -0.014);
119
+ sh.lineTo(0.048, 0.014);
120
+ sh.lineTo(-0.048, 0.014);
121
+ sh.closePath();
122
+ return new THREE.ExtrudeGeometry(sh, {steps: 60, extrudePath: curve, bevelEnabled: false});
123
+ }
124
+ // a tyre: a rounded lathe profile; the sidewall lettering is a ring with a canvas texture
125
+ function tyreGeo() {
126
+ const R = G.wheelR;
127
+ const W = G.wheelW;
128
+ const pts = [];
129
+ const r0 = R * 0.55;
130
+ for (let i = 0; i <= 24; i++) {
131
+ const a = -Math.PI / 2 + (i / 24) * Math.PI;
132
+ pts.push(new THREE.Vector2(R - (W / 2) * 0.55 + (W / 2) * 0.55 * Math.cos(a), (W / 2) * Math.sin(a)));
133
+ }
134
+ pts.unshift(new THREE.Vector2(r0, -W / 2 * 0.9));
135
+ pts.push(new THREE.Vector2(r0, W / 2 * 0.9));
136
+ const g = new THREE.LatheGeometry(pts, 64);
137
+ g.rotateZ(Math.PI / 2);
138
+ return g;
139
+ }
140
+ function letterTex() {
141
+ const c = document.createElement('canvas');
142
+ c.width = c.height = 1024;
143
+ const g = c.getContext('2d');
144
+ g.clearRect(0, 0, 1024, 1024);
145
+ g.fillStyle = '#f4f1ea';
146
+ g.font = '700 74px Inter, Arial, sans-serif';
147
+ g.textAlign = 'center';
148
+ g.textBaseline = 'middle';
149
+ const word = 'AEROGRIP';
150
+ for (const [a0, w] of [[-Math.PI / 2, word], [Math.PI / 2, '6.00-6 6PLY']]) {
151
+ const span = 0.11;
152
+ [...w].forEach((ch, i) => {
153
+ const a = a0 + (i - (w.length - 1) / 2) * span;
154
+ g.save();
155
+ g.translate(512 + Math.cos(a) * 395, 512 + Math.sin(a) * 395);
156
+ g.rotate(a + Math.PI / 2);
157
+ g.fillText(ch, 0, 0);
158
+ g.restore();
159
+ });
160
+ }
161
+ const t = new THREE.CanvasTexture(c);
162
+ t.colorSpace = THREE.SRGBColorSpace;
163
+ t.anisotropy = 8;
164
+ return t;
165
+ }
166
+
167
+ export function buildGear() {
168
+ const M = {
169
+ white: new THREE.MeshPhysicalMaterial({color: '#f1efea', roughness: 0.35, metalness: 0, clearcoat: 0.35, clearcoatRoughness: 0.35}),
170
+ orange: new THREE.MeshPhysicalMaterial({color: '#e8572a', roughness: 0.32, metalness: 0.05, clearcoat: 0.5, clearcoatRoughness: 0.25}),
171
+ black: new THREE.MeshPhysicalMaterial({color: '#17181b', roughness: 0.35, metalness: 0.2, clearcoat: 0.5}),
172
+ rubber: new THREE.MeshStandardMaterial({color: '#1b1c1e', roughness: 0.82, metalness: 0}),
173
+ steel: new THREE.MeshStandardMaterial({color: '#c9ccd1', roughness: 0.22, metalness: 1}),
174
+ brass: new THREE.MeshStandardMaterial({color: '#b28a3e', roughness: 0.3, metalness: 0.9}),
175
+ hub: new THREE.MeshStandardMaterial({color: '#b8bcc2', roughness: 0.3, metalness: 0.8}),
176
+ plate: null,
177
+ body: null,
178
+ letters: new THREE.MeshStandardMaterial({map: letterTex(), transparent: true, roughness: 0.6, depthWrite: false, polygonOffset: true, polygonOffsetFactor: -2}),
179
+ };
180
+ // the plate (and its rails and blocks) and the actuator body get their own white so x-ray and section reach only them
181
+ M.plate = M.white.clone();
182
+ M.body = M.white.clone();
183
+ const all = [];
184
+ const add = (parent, geo, mat) => {
185
+ const m = new THREE.Mesh(geo, mat);
186
+ m.castShadow = true;
187
+ m.receiveShadow = true;
188
+ parent.add(m);
189
+ all.push(m);
190
+ return m;
191
+ };
192
+ const root = new THREE.Group();
193
+
194
+ // ------------------------------------------------------------ plate and rails
195
+ const plate = new THREE.Group();
196
+ root.add(plate);
197
+ add(plate, plateGeo(), M.plate);
198
+ const rail = railGeo(1.1, 0.07);
199
+ for (const x of [-0.08, 0.08]) add(plate, rail, M.plate).position.set(x, 0.004, -0.12);
200
+ // pillow blocks under the plate carrying the output shaft
201
+ for (const x of [-0.11, 0.11]) {
202
+ const b = add(plate, new RoundedBoxGeometry(0.05, 0.12, 0.07, 3, 0.012), M.plate);
203
+ b.position.set(x, -0.026 - 0.06 + 0.006, 0);
204
+ }
205
+
206
+ // ------------------------------------------------------------ actuator, rod end, rack
207
+ const act = new THREE.Group();
208
+ root.add(act);
209
+ const AY = 0.06;
210
+ const body = add(act, new THREE.CylinderGeometry(0.042, 0.042, 0.46, 32), M.body);
211
+ body.rotation.x = Math.PI / 2;
212
+ body.position.set(0, AY, -0.39);
213
+ for (const z of [-0.6, -0.17]) {
214
+ const band = add(act, new THREE.CylinderGeometry(0.046, 0.046, 0.03, 32), M.black);
215
+ band.rotation.x = Math.PI / 2;
216
+ band.position.set(0, AY, z);
217
+ }
218
+ const clevis = add(act, new RoundedBoxGeometry(0.06, 0.07, 0.07, 3, 0.012), M.brass);
219
+ clevis.position.set(0, AY - 0.005, -0.66);
220
+ const pin = add(act, new THREE.CylinderGeometry(0.012, 0.012, 0.1, 12), M.black);
221
+ pin.rotation.z = Math.PI / 2;
222
+ pin.position.set(0, AY - 0.005, -0.66);
223
+ const nipple = add(act, new THREE.CylinderGeometry(0.012, 0.012, 0.03, 12), M.orange);
224
+ nipple.position.set(0, AY + 0.05, -0.55);
225
+ const rod = add(act, new THREE.CylinderGeometry(0.016, 0.016, 1, 20), M.steel);
226
+ rod.rotation.x = Math.PI / 2;
227
+ const rodEnd = new THREE.Group();
228
+ root.add(rodEnd);
229
+ add(rodEnd, new RoundedBoxGeometry(0.07, 0.06, 0.08, 3, 0.012), M.orange).position.y = AY;
230
+ const web = add(rodEnd, new RoundedBoxGeometry(0.03, 0.1, 0.05, 2, 0.008), M.orange);
231
+ web.position.y = AY - 0.06;
232
+ for (const s of [-1, 1]) {
233
+ const b = add(rodEnd, new THREE.CylinderGeometry(0.008, 0.008, 0.01, 10), M.black);
234
+ b.rotation.z = Math.PI / 2;
235
+ b.position.set(s * 0.036, AY, 0.015);
236
+ }
237
+ const RACK_LEN = 0.34;
238
+ const rack = add(root, rackGeo(RACK_LEN, 0.04, 0.034, 2 * Math.PI * G.pinionR / 32), M.brass);
239
+ const RACK_Y = G.shaftY + G.pinionR + 0.017 + 0.004;
240
+
241
+ // ------------------------------------------------------------ pinion and output shaft
242
+ const shaft = new THREE.Group();
243
+ shaft.position.set(0, G.shaftY, 0);
244
+ root.add(shaft);
245
+ const sh = add(shaft, new THREE.CylinderGeometry(0.024, 0.024, 2 * (G.jointX - 0.03), 24), M.black);
246
+ sh.rotation.z = Math.PI / 2;
247
+ const pinion = add(shaft, gearGeo(32, G.pinionR, 0.036, 0.02), M.brass);
248
+ pinion.rotation.y = Math.PI / 2;
249
+ for (const x of [-0.11, 0.11]) {
250
+ const brg = add(shaft, new THREE.CylinderGeometry(0.03, 0.03, 0.05, 24), M.steel);
251
+ brg.rotation.z = Math.PI / 2;
252
+ brg.position.x = x;
253
+ }
254
+
255
+ // ------------------------------------------------------------ one side: clevis joint, side tube, leg, wheel
256
+ const sides = [1, -1].map((sx) => {
257
+ const side = new THREE.Group();
258
+ side.scale.x = sx;
259
+ root.add(side);
260
+ // the shaft-side yoke turns with the shaft about x
261
+ const yokeA = new THREE.Group();
262
+ yokeA.position.copy(J);
263
+ side.add(yokeA);
264
+ add(yokeA, new RoundedBoxGeometry(0.05, 0.075, 0.075, 3, 0.014), M.orange).position.x = -0.03;
265
+ for (const s of [-1, 1]) {
266
+ const bolt = add(yokeA, new THREE.CylinderGeometry(0.009, 0.009, 0.012, 10), M.black);
267
+ bolt.rotation.x = Math.PI / 2;
268
+ bolt.position.set(-0.03, s * 0.02, 0.04);
269
+ }
270
+ // the tube group turns about the side tube's own axis; the tube, its yoke, the leg and the wheel ride on it
271
+ const spin = new THREE.Group();
272
+ spin.position.copy(J);
273
+ side.add(spin);
274
+ const yokeB = add(spin, new RoundedBoxGeometry(0.075, 0.06, 0.06, 3, 0.012), M.orange);
275
+ yokeB.position.copy(AXIS).multiplyScalar(0.035);
276
+ yokeB.quaternion.setFromUnitVectors(new V3(1, 0, 0), AXIS);
277
+ const tube = add(spin, new THREE.CylinderGeometry(0.024, 0.024, G.tubeLen - 0.03, 20), M.steel);
278
+ tube.position.copy(AXIS).multiplyScalar((G.tubeLen + 0.03) / 2);
279
+ tube.quaternion.setFromUnitVectors(new V3(0, 1, 0), AXIS);
280
+ // a stripe on the tube so its spin reads
281
+ const stripe = add(spin, new THREE.BoxGeometry(0.006, G.tubeLen * 0.6, 0.044), M.black);
282
+ stripe.position.copy(tube.position);
283
+ stripe.quaternion.copy(tube.quaternion);
284
+ const root2 = add(spin, new RoundedBoxGeometry(0.08, 0.07, 0.07, 3, 0.014), M.orange);
285
+ root2.position.copy(E0).sub(J);
286
+ const leg = add(spin, legGeo(), M.orange);
287
+ leg.position.copy(E0).sub(J);
288
+ // the wheel: axle along x when down, spinning on its axle
289
+ const wheelMount = new THREE.Group();
290
+ wheelMount.position.copy(TIP0).sub(J);
291
+ spin.add(wheelMount);
292
+ const fork = add(wheelMount, new RoundedBoxGeometry(0.05, 0.09, 0.06, 3, 0.012), M.black);
293
+ fork.position.x = -0.07;
294
+ const wheel = new THREE.Group();
295
+ wheelMount.add(wheel);
296
+ add(wheel, tyreGeo(), M.rubber);
297
+ const hub = add(wheel, new THREE.CylinderGeometry(G.wheelR * 0.5, G.wheelR * 0.5, G.wheelW * 0.8, 40), M.hub);
298
+ hub.rotation.z = Math.PI / 2;
299
+ const cap = add(wheel, new THREE.CylinderGeometry(0.035, 0.035, G.wheelW * 0.95, 24), M.black);
300
+ cap.rotation.z = Math.PI / 2;
301
+ for (const s of [-1, 1]) {
302
+ const ring = add(wheel, new THREE.RingGeometry(G.wheelR * 0.62, G.wheelR * 0.98, 64), M.letters);
303
+ ring.rotation.y = (s * Math.PI) / 2;
304
+ ring.position.x = s * (G.wheelW / 2 - 0.002);
305
+ ring.castShadow = false;
306
+ }
307
+ return {side, yokeA, spin, wheel};
308
+ });
309
+
310
+ // display modes: x-ray (the plate and the actuator body go to glass), section (both cut at the centreline), exploded
311
+ const CLIP = new THREE.Plane(new V3(-1, 0, 0), 0);
312
+ let xrayNow = -1;
313
+ let sectionNow = false;
314
+ const setXray = (k) => {
315
+ if (Math.abs(k - xrayNow) < 1e-3) return;
316
+ xrayNow = k;
317
+ for (const m of [M.plate, M.body]) {
318
+ m.transparent = k > 0.001;
319
+ m.opacity = 1 - 0.78 * k;
320
+ m.depthWrite = k < 0.5;
321
+ m.needsUpdate = true;
322
+ }
323
+ };
324
+ const setSection = (on) => {
325
+ if (on === sectionNow) return;
326
+ sectionNow = on;
327
+ for (const m of [M.plate, M.body]) {
328
+ m.clippingPlanes = on ? [CLIP] : null;
329
+ m.side = on ? THREE.DoubleSide : THREE.FrontSide;
330
+ m.needsUpdate = true;
331
+ }
332
+ };
333
+ const out = {theta: 0, d: 0, CLIP};
334
+ /** stroke 0..1 (0 down and locked, 1 up), roll (wheel spin, radians), xray 0..1, section, explode 0..1 */
335
+ const update = ({stroke = 0, roll = 0, xray = 0, section = false, explode = 0} = {}) => {
336
+ setXray(xray);
337
+ setSection(section);
338
+ const e = explode;
339
+ plate.position.y = 0.16 * e;
340
+ act.position.y = 0.36 * e;
341
+ const th = stroke * Math.PI;
342
+ const d = stroke * G.stroke;
343
+ out.theta = th;
344
+ out.d = d;
345
+ // the actuator strokes aft: the rod end, the rack with it
346
+ const zRe = 0.32 - d;
347
+ rodEnd.position.set(0, 0.36 * e, zRe);
348
+ const rodFrom = -0.16;
349
+ rod.scale.y = zRe - rodFrom;
350
+ rod.position.set(0, AY, (zRe + rodFrom) / 2);
351
+ rack.position.set(0, RACK_Y + 0.06 * e, zRe - 0.02 - RACK_LEN / 2);
352
+ shaft.position.y = G.shaftY - 0.12 * e;
353
+ // the rack turns the pinion and the shaft (rack aft = shaft turning about +x)
354
+ shaft.rotation.x = th;
355
+ for (const s of sides) {
356
+ s.side.position.set(0.16 * e * s.side.scale.x, -0.12 * e, 0);
357
+ s.yokeA.rotation.x = th;
358
+ s.spin.quaternion.setFromAxisAngle(AXIS, th);
359
+ s.wheel.rotation.x = roll;
360
+ }
361
+ };
362
+ update();
363
+ return {root, update, M, all, plate, act, rack, shaft, sides, out};
364
+ }