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,239 @@
1
+ // V8 · Four-Stroke, the explorer film: the engine (engine.js) on the pale studio (stage.js) under the overlay
2
+ // (console.js). The crank runs at engine speed × playback (1/20: 700 rpm turns 210° a second on screen). An operator
3
+ // isolates cylinder 1, switches the tracking to cylinder 6 from the firing order, looks down the valley, opens the
4
+ // throttle to 2,400 rpm, then walks the side, front and hero views. A pure function of t.
5
+ import {runSim} from '../kit/runtime.js';
6
+ import {CAMS, createConsole, RPM_MAX} from './console.js';
7
+ import {bankXY, CYL, E, ORDER, psi} from './kin.js';
8
+ import {createV8Stage} from './stage.js';
9
+
10
+ // the film opens on the whole engine, a slow orbit and a gentle push in for 3.5 s, then a beat every 2.5-3 s
11
+ export const SCRIPT = [
12
+ {t: 0, cam: 'open'},
13
+ {t: 3.5, cam: 'cyl'},
14
+ {t: 6.9, track: 6},
15
+ {t: 9.7, cam: 'valley'},
16
+ {t: 12.1, rpm: [700, 2400, 1.4]},
17
+ {t: 14.7, cam: 'side'},
18
+ {t: 17.3, cam: 'front'},
19
+ {t: 19.9, cam: 'hero'},
20
+ {t: 22.5, track: 1},
21
+ ];
22
+ export const DURATION = 26;
23
+ export const DEFAULTS = {duration: DURATION, fps: 60, theme: 'light', hud: {enabled: false, title: 'v8d', subtitle: ''}, director: {enabled: false}, watermark: ''};
24
+ const D2R = Math.PI / 180;
25
+ const mm = (v) => v * 0.001;
26
+ const smoother = (x) => {
27
+ const u = Math.min(1, Math.max(0, x));
28
+ return u * u * u * (u * (u * 6 - 15) + 10);
29
+ };
30
+ const ss = (a, b, t) => smoother((t - a) / (b - a));
31
+ const PLAY = 20; // playback divider: 1/20 speed
32
+
33
+ // ------------------------------------------------------------ engine speed and the crank angle
34
+ const RPM_EV = SCRIPT.find((e) => e.rpm);
35
+ export const rpmAt = (t) => RPM_EV.rpm[0] + (RPM_EV.rpm[1] - RPM_EV.rpm[0]) * ss(RPM_EV.t, RPM_EV.t + RPM_EV.rpm[2], t);
36
+ const DT = 1 / 240;
37
+ const TH = [];
38
+ {
39
+ let th = 12;
40
+ for (let t = 0; t <= DURATION + 1; t += DT) {
41
+ TH.push(th);
42
+ th += ((rpmAt(t + DT / 2) / 60) * 360 * DT) / PLAY;
43
+ }
44
+ }
45
+ export const thetaAt = (t) => {
46
+ const u = Math.max(0, Math.min(TH.length - 2, t / DT));
47
+ const i = Math.floor(u);
48
+ return TH[i] + (TH[i + 1] - TH[i]) * (u - i);
49
+ };
50
+ export const trackAt = (t) => SCRIPT.filter((e) => e.track && e.t <= t).pop()?.track ?? 1;
51
+
52
+ // ------------------------------------------------------------ views, each a function of u (seconds since it came on)
53
+ const cylCentre = (c) => {
54
+ const cy = CYL[c - 1];
55
+ const [x, y] = bankXY(cy.bank, 0, 170);
56
+ return [mm(x), mm(y), mm(cy.z)];
57
+ };
58
+ export const VIEW_FN = {
59
+ // the opening: a quarter turn round the whole engine, easing in and out, pushing in a little
60
+ open: (u) => {
61
+ const k = smoother(u / 4.1);
62
+ return {tx: 0, ty: 0.11, tz: -0.02, az: 4 + 54 * k, el: 18 + 9 * k, d: 2.2 - 0.25 * k, sx: -50, sy: 10};
63
+ },
64
+ hero: (u) => ({tx: 0, ty: 0.11, tz: -0.02, az: 46 + 5 * u, el: 26, d: 1.95, sx: -50, sy: 10}),
65
+ cyl: (u, c) => {
66
+ const [x, y, z] = cylCentre(c);
67
+ const L = CYL[c - 1].bank === 'L';
68
+ return {tx: x * 0.72, ty: y * 0.72 + 0.02, tz: z, az: (L ? 16 : -16) + (L ? 1 : -1) * 5.5 * u, el: 9 + 1.2 * u, d: 1.18, sx: -40, sy: 14};
69
+ },
70
+ valley: (u) => ({tx: 0, ty: 0.14, tz: 0, az: 14 + 7 * u, el: 60, d: 2.35, sx: -40, sy: -28}),
71
+ side: (u) => ({tx: 0, ty: 0.1, tz: 0, az: 100 - 5 * u, el: 12 + 1.5 * u, d: 1.95, sx: -40, sy: 10}),
72
+ front: (u) => ({tx: 0, ty: 0.12, tz: 0, az: -6 + 5 * u, el: 10 + 2 * u, d: 1.8, sx: -40, sy: 10}),
73
+ };
74
+ const VIEWS = SCRIPT.filter((e) => e.cam).map((e) => [e.t, e.cam]);
75
+ // a camera move: every parameter eased, the azimuth the short way round, backing off through a wide swing
76
+ export const camAt = (t, list = VIEWS, track = trackAt) => {
77
+ let i = 0;
78
+ while (i < list.length - 1 && list[i + 1][0] <= t) i++;
79
+ const view = (k, tt) => VIEW_FN[list[k][1]](tt - list[k][0], track(tt));
80
+ const cur = view(i, t);
81
+ // a tracking switch while isolated glides the camera to the new cylinder
82
+ const tr = SCRIPT.find((e) => e.track && e.t <= t && t < e.t + 2);
83
+ let o = cur;
84
+ if (tr && list[i][1] === 'cyl') {
85
+ const prev = VIEW_FN.cyl(t - list[i][0], trackAt(tr.t - 0.01));
86
+ const k = ss(tr.t, tr.t + 1.8, t);
87
+ o = blend(prev, cur, k, false);
88
+ }
89
+ if (i === 0) return o;
90
+ const k = ss(list[i][0], list[i][0] + 1.6, t);
91
+ if (k >= 1) return o;
92
+ return blend(view(i - 1, t), o, k);
93
+ };
94
+ function blend(a, b, k, backOff = true) {
95
+ const o = {};
96
+ for (const key in b) o[key] = key === 'az' ? a.az + ((((b.az - a.az + 540) % 360) - 180) * k) : a[key] + (b[key] - a[key]) * k;
97
+ const swing = Math.min(1, Math.abs(((b.az - a.az + 540) % 360) - 180) / 90);
98
+ if (backOff) o.d += Math.max(0, Math.max(a.d, b.d) + 0.6 * swing - o.d) * Math.sin(Math.PI * k);
99
+ return o;
100
+ }
101
+ export const camName = (t) => {
102
+ const v = VIEWS.filter(([t0]) => t0 <= t).pop()[1];
103
+ return v === 'open' ? 'hero' : v;
104
+ };
105
+ export const firingNow = (th) => {
106
+ let best = 1;
107
+ let bp = 1e9;
108
+ for (const c of ORDER) {
109
+ const p = psi(c, th);
110
+ if (p < bp) {
111
+ bp = p;
112
+ best = c;
113
+ }
114
+ }
115
+ return best;
116
+ };
117
+
118
+ // ------------------------------------------------------------ the operator's pointer
119
+ const REST = [[820, 470], [700, 430], [900, 520], [760, 380]];
120
+ export function makeCursor(ui) {
121
+ const EV = SCRIPT.filter((e) => e.t > 0).map((e) => {
122
+ if (e.rpm) return {t: e.t, spot: ui.speedKnob(e.rpm[0] / RPM_MAX), to: ui.speedKnob(e.rpm[1] / RPM_MAX), drag: e.rpm[2]};
123
+ if (e.track) return {t: e.t, spot: ui.foSpot(ORDER.indexOf(e.track)), drag: 0};
124
+ return {t: e.t, spot: ui.spots[e.cam], drag: 0};
125
+ });
126
+ const WP = [[0, 980, 640]];
127
+ EV.forEach((e, i) => {
128
+ WP.push([e.t - 0.16, ...e.spot]);
129
+ if (e.drag) {
130
+ for (let k = 0; k <= 12; k++) {
131
+ const tt = e.t + (k / 12) * e.drag;
132
+ WP.push([tt + 0.02, ...ui.speedKnob(rpmAt(tt) / RPM_MAX)]);
133
+ }
134
+ WP.push([e.t + e.drag + 0.3, ...e.to]);
135
+ } else WP.push([e.t + 0.24, ...e.spot]);
136
+ WP.push([e.t + e.drag + 1.6, ...REST[i % REST.length]]);
137
+ });
138
+ WP.sort((a, b) => a[0] - b[0]);
139
+ return (t) => {
140
+ let i = 0;
141
+ while (i < WP.length - 2 && t > WP[i + 1][0]) i++;
142
+ const [t0, x0, y0] = WP[i];
143
+ const [t1, x1, y1] = WP[i + 1];
144
+ const lin = t1 - t0 < 0.2;
145
+ const k = lin ? Math.min(1, Math.max(0, (t - t0) / (t1 - t0))) : ss(t0, t1, t);
146
+ const len = Math.hypot(x1 - x0, y1 - y0);
147
+ const bow = lin ? 0 : Math.sin(Math.PI * k) * Math.min(24, len * 0.07);
148
+ let press = false;
149
+ let ring = 0;
150
+ let rx = 0;
151
+ let ry = 0;
152
+ for (const e of EV) {
153
+ if (t >= e.t - 0.07 && t < e.t + Math.max(0.09, e.drag + 0.1)) press = true;
154
+ if (t >= e.t && t < e.t + 0.55) {
155
+ ring = 1 - (t - e.t) / 0.55;
156
+ [rx, ry] = e.spot;
157
+ }
158
+ }
159
+ return {x: x0 + (x1 - x0) * k + (len ? (-(y1 - y0) / len) * bow : 0), y: y0 + (y1 - y0) * k + (len ? ((x1 - x0) / len) * bow : 0), press, ring, ringX: rx, ringY: ry};
160
+ };
161
+ }
162
+
163
+ // ------------------------------------------------------------ the overlay's data for a frame
164
+ export function makeConsoleFrame(ui, st) {
165
+ const P = (x, y, z) => st.project(mm(x), mm(y), mm(z));
166
+ const Lb = [Math.SQRT1_2, Math.SQRT1_2];
167
+ // live: the page's own state (overlays, cutaway, playback, pause, solo); absent in the film
168
+ return (t, {th, cam, cyl, rpm, cursor, since, live}) => {
169
+ const solo = live ? live.solo : cam === 'cyl';
170
+ const cy = CYL[cyl - 1];
171
+ const vis = ss(1.1, 1.8, since) * (live && !live.overlays.callouts ? 0 : 1);
172
+ const callouts = [];
173
+ if (!solo && (cam === 'hero' || cam === 'side')) {
174
+ callouts.push(
175
+ {name: 'Camshaft', sub: 'HALF CRANK SPEED', at: P((E.deck + 112) * Lb[0], (E.deck + 112) * Lb[1], -60), label: [962, 196], w: 120, o: vis},
176
+ {name: 'Flywheel', sub: 'STORES THE PULSES', at: P(120, -40, -290), label: [1168, 572], w: 124, o: vis},
177
+ {name: 'Helical timing gears', sub: '24 : 72', at: P(150 * Lb[0], 150 * Lb[1], 268), label: [306, 704], w: 128, o: vis},
178
+ );
179
+ }
180
+ if (solo) {
181
+ const [x, y] = bankXY(cy.bank, 0, E.deck + 112);
182
+ callouts.push({name: 'Camshaft', sub: 'HALF CRANK SPEED', at: P(x, y, cy.z), label: [720, 226], w: 120, o: vis});
183
+ }
184
+ // leaders from the panels into the engine: the rev counter to the crank, the indicator panel to the tracked bore
185
+ const [bx, by] = bankXY(cy.bank, 0, E.deck - 40);
186
+ const lead = live && !live.overlays.callouts ? 0 : 1;
187
+ callouts.push({name: '', sub: '', at: solo ? P(0, 0, cy.z) : P(0, 0, 312), label: [282, 152], w: 0, o: lead});
188
+ callouts.push({name: '', sub: '', at: P(bx, by, cy.z), label: [1318 - 0.01, 501], w: 0, o: 0.9 * lead * (live && !live.overlays.charts ? 0 : 1)});
189
+ const ps = psi(cyl, th);
190
+ ui.update({
191
+ rpm,
192
+ rpmK: rpm / RPM_MAX,
193
+ playText: live ? live.playText : '1 / 20 SPEED',
194
+ playK: live ? live.playK : 0.33,
195
+ paused: live ? live.paused : false,
196
+ theta: th,
197
+ psi: ps,
198
+ cyl,
199
+ pin: cy.pin,
200
+ firing: firingNow(th),
201
+ cam,
202
+ cut: live ? live.cut : 'glass',
203
+ overlays: live ? live.overlays : {callouts: 1, charge: 1, arrows: 1, isolate: solo ? 1 : 0, refract: 1, charts: 1},
204
+ callouts,
205
+ cursor,
206
+ });
207
+ };
208
+ }
209
+
210
+ export function makeFilm() {
211
+ return async ({canvas, capture}) => {
212
+ const st = createV8Stage({canvas});
213
+ const resize = () => st.resize(1600, 900, capture ? devicePixelRatio || 1 : Math.min(devicePixelRatio || 1, 2));
214
+ resize();
215
+ const ui = createConsole(document.getElementById('app'));
216
+ const cursorAt = makeCursor(ui);
217
+ const frame = makeConsoleFrame(ui, st);
218
+ window.V8 = st;
219
+ return {
220
+ resize,
221
+ render(t) {
222
+ const th = thetaAt(t);
223
+ const cam = camName(t);
224
+ const cyl = trackAt(t);
225
+ const c = camAt(t);
226
+ const t0 = VIEWS.filter(([a]) => a <= t).pop()[0];
227
+ // isolate once the camera has closed in, and keep it until the next move has pulled back a little
228
+ const vi = VIEWS.findIndex(([a]) => a === t0);
229
+ const soloOn = (cam === 'cyl' && t - t0 > 1.25) || (vi > 0 && VIEWS[vi - 1][1] === 'cyl' && t - t0 < 0.6);
230
+ st.frame(th, {...c, az: c.az * D2R, el: c.el * D2R}, {solo: soloOn ? cyl - 1 : -1});
231
+ frame(t, {th, cam, cyl, rpm: rpmAt(t), cursor: cursorAt(t), since: t - t0});
232
+ return {};
233
+ },
234
+ };
235
+ };
236
+ }
237
+ void CAMS;
238
+
239
+ export const run = () => runSim(DEFAULTS, makeFilm());
@@ -0,0 +1,86 @@
1
+ // V8 kinematics for the four-stroke explorer: a 90° cross-plane crank, firing order 1-8-4-3-6-5-7-2, the piston of
2
+ // every cylinder from the exact slider-crank, valve lift over the 720° cycle, and a chamber pressure model good
3
+ // enough to draw the indicator diagram. Engine space is millimetres: crank axis on z (front = +z), y up.
4
+ export const E = {bore: 101.6, r: 44.5, rod: 145, comp: 30, deck: 226, pinZ: [168, 56, -56, -168], rodOff: 11, cr: 10.2};
5
+ export const STROKE = 2 * E.r;
6
+ const S = Math.SQRT1_2;
7
+ // bank frames in the XY plane: b along the cylinder axis, p outward across the bank
8
+ export const BANK = {
9
+ L: {b: [S, S], p: [S, -S], sign: 1},
10
+ R: {b: [-S, S], p: [-S, -S], sign: -1},
11
+ };
12
+ // cylinders 1..8: odd on the left bank (+x), even on the right; 1 at the front
13
+ export const CYL = [1, 2, 3, 4, 5, 6, 7, 8].map((c) => {
14
+ const odd = c % 2 === 1;
15
+ const pin = Math.floor((c - 1) / 2);
16
+ return {c, bank: odd ? 'L' : 'R', pin, z: E.pinZ[pin] + (odd ? E.rodOff : -E.rodOff)};
17
+ });
18
+ export const FIRE = {1: 0, 8: 90, 4: 180, 3: 270, 6: 360, 5: 450, 7: 540, 2: 630};
19
+ export const ORDER = [1, 8, 4, 3, 6, 5, 7, 2];
20
+ // cross-plane crank: pin angles clockwise from +y, seen from the front
21
+ export const PIN_PHASE = [45, 135, -45, 225];
22
+ const mod = (a, m) => ((a % m) + m) % m;
23
+
24
+ export const bankXY = (bank, w, d) => {
25
+ const B = BANK[bank];
26
+ return [d * B.b[0] + w * B.p[0], d * B.b[1] + w * B.p[1]];
27
+ };
28
+ export const pinXY = (p, th) => {
29
+ const a = ((th + PIN_PHASE[p]) * Math.PI) / 180;
30
+ return [E.r * Math.sin(a), E.r * Math.cos(a)];
31
+ };
32
+ /** cylinder index i (0-based): the piston pin's distance along the bank axis, the crank pin, the pin point */
33
+ export const piston = (i, th) => {
34
+ const cy = CYL[i];
35
+ const B = BANK[cy.bank];
36
+ const P = pinXY(cy.pin, th);
37
+ const pb = P[0] * B.b[0] + P[1] * B.b[1];
38
+ const pp = P[0] * B.p[0] + P[1] * B.p[1];
39
+ const s = pb + Math.sqrt(E.rod * E.rod - pp * pp);
40
+ return {s, P, pin: [s * B.b[0], s * B.b[1]]};
41
+ };
42
+ // the pin distance at TDC and BDC (the same for every cylinder)
43
+ export const S_TDC = E.r + E.rod;
44
+ export const S_BDC = E.rod - E.r;
45
+ /** four-stroke phase of cylinder c in degrees after its firing TDC: 0-180 power, 180-360 exhaust, 360-540 intake, 540-720 compression */
46
+ export const psi = (c, th) => mod(th - FIRE[c], 720);
47
+ export const STROKES = ['POWER', 'EXHAUST', 'INTAKE', 'COMPRESSION'];
48
+ export const strokeOf = (ps) => STROKES[Math.floor(mod(ps, 720) / 180)];
49
+
50
+ // valves: lift 0..1 as a smooth bump between opening and closing (degrees after firing TDC)
51
+ export const VALVE = {ex: [140, 380], in: [340, 580], lift: 10.5};
52
+ const bump = (ps, [a, b]) => {
53
+ const x = (mod(ps - a, 720)) / (b - a);
54
+ return x >= 0 && x <= 1 ? Math.sin(Math.PI * x) ** 2 : 0;
55
+ };
56
+ export const liftEx = (ps) => bump(ps, VALVE.ex);
57
+ export const liftIn = (ps) => bump(ps, VALVE.in);
58
+ /** piston position as a fraction of the stroke from TDC (0 at TDC, 1 at BDC), at phase ps */
59
+ export const pistonFrac = (ps) => {
60
+ const a = (ps * Math.PI) / 180;
61
+ const sp = E.r * Math.cos(a) + Math.sqrt(E.rod * E.rod - (E.r * Math.sin(a)) ** 2);
62
+ return (S_TDC - sp) / STROKE;
63
+ };
64
+ /** cylinder volume in units of the clearance volume (1 at TDC, cr at BDC) */
65
+ export const volume = (ps) => 1 + (E.cr - 1) * pistonFrac(ps);
66
+ /** chamber pressure in bar: a polytropic compression, a fast burn just after TDC, a polytropic expansion */
67
+ export const pressure = (ps) => {
68
+ ps = mod(ps, 720);
69
+ const V = volume(ps);
70
+ if (ps >= 360 && ps < 540) return 0.9;
71
+ if (ps >= 180 && ps < 360) return 1.1 + 0.4 * Math.max(0, 1 - (ps - 180) / 40);
72
+ if (ps >= 540) return Math.max(0.9, 0.95 * Math.pow(E.cr / V, 1.32));
73
+ // power: the burn rises over the first 10 degrees, then the gas expands
74
+ const comp = 0.95 * Math.pow(E.cr / V, 1.32);
75
+ const burn = 54 * Math.pow(1 / V, 1.28);
76
+ const k = Math.min(1, ps / 10);
77
+ return Math.max(1.1, comp + (burn - comp) * (k * k * (3 - 2 * k)));
78
+ };
79
+ /** the charge colour key: 0 air & fuel, 1 compressed, 2 combustion, 3 exhaust */
80
+ export const chargeOf = (ps) => {
81
+ ps = mod(ps, 720);
82
+ if (ps < 60) return 2;
83
+ if (ps < 360) return 3;
84
+ if (ps < 540) return 0;
85
+ return 1;
86
+ };