sera-code 0.1.3 → 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.
- package/README.md +9 -1
- package/bin/sera.mjs +31 -0
- package/dist/bundle/chunks/{chunk-OXMPCU7P.js → chunk-DFRGGJWV.js} +1 -1
- package/dist/bundle/chunks/{chunk-KO3Z5BTR.js → chunk-EMXTNOOJ.js} +5 -5
- package/dist/bundle/chunks/{chunk-KXU77PUU.js → chunk-ET2ARYK4.js} +1 -1
- package/dist/bundle/chunks/{chunk-ZNCN2NGY.js → chunk-G5BGS7HZ.js} +2 -2
- package/dist/bundle/chunks/{chunk-HODJBMOY.js → chunk-GSGPISRE.js} +3 -4
- package/dist/bundle/chunks/{chunk-46WGNYIE.js → chunk-NMUS7OCP.js} +1 -1
- package/dist/bundle/chunks/{chunk-HQBQWHLD.js → chunk-RCQXVPCE.js} +1 -1
- package/dist/bundle/chunks/{cli-MML2DU4A.js → cli-NOCFT7AL.js} +1 -1
- package/dist/bundle/chunks/{execute-HXDNZ26B.js → execute-S2O3RL6V.js} +1 -1
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{runtime-JAH75CB5.js → runtime-BRT7AUXY.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-OE2CSJ4W.js → virtual-modules-QR2XYBMY.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/lib/postinstall.js +16 -0
- package/lib/update.js +85 -0
- package/lib/win-setup.js +96 -0
- package/package.json +4 -1
- package/sera-core/skills/ambalaj-tasarim/NOTICE +1 -0
- package/sera-core/skills/ambalaj-tasarim/SKILL.md +34 -0
- package/sera-core/skills/ambalaj-tasarim/dieline.mjs +17 -0
- package/sera-core/skills/ambalaj-tasarim/sera-pack.js +535 -0
- package/sera-core/skills/animasyonlu-site/NOTICE +1 -0
- package/sera-core/skills/animasyonlu-site/SKILL.md +26 -0
- package/sera-core/skills/animasyonlu-site/sera-motion.js +310 -0
- package/sera-core/skills/animate/LICENSE +21 -0
- package/sera-core/skills/animate/NOTICE +2 -0
- package/sera-core/skills/animate/RECIPES.md +324 -0
- package/sera-core/skills/animate/SKILL.md +209 -0
- package/sera-core/skills/astryx-ui/SKILL.md +37 -0
- package/sera-core/skills/awwwards/LICENSE +21 -0
- package/sera-core/skills/awwwards/NOTICE +5 -0
- package/sera-core/skills/awwwards/SKILL.md +357 -0
- package/sera-core/skills/awwwards/references/anatomy.md +103 -0
- package/sera-core/skills/awwwards/references/art-direction.md +114 -0
- package/sera-core/skills/awwwards/references/astro.md +235 -0
- package/sera-core/skills/awwwards/references/concepts.md +110 -0
- package/sera-core/skills/awwwards/references/content.md +88 -0
- package/sera-core/skills/awwwards/references/engine.md +751 -0
- package/sera-core/skills/awwwards/references/layout.md +81 -0
- package/sera-core/skills/awwwards/references/motion.md +463 -0
- package/sera-core/skills/awwwards/references/nextjs.md +386 -0
- package/sera-core/skills/awwwards/references/patterns.md +123 -0
- package/sera-core/skills/awwwards/references/quality-bar.md +151 -0
- package/sera-core/skills/awwwards/references/quality.md +91 -0
- package/sera-core/skills/awwwards/references/ship.md +36 -0
- package/sera-core/skills/awwwards/references/typography.md +135 -0
- package/sera-core/skills/awwwards/references/webgl.md +430 -0
- package/sera-core/skills/awwwards/scripts/audit.mjs +243 -0
- package/sera-core/skills/awwwards/scripts/browser.mjs +54 -0
- package/sera-core/skills/awwwards/scripts/font.mjs +87 -0
- package/sera-core/skills/awwwards/scripts/og.mjs +20 -0
- package/sera-core/skills/awwwards/scripts/photos.mjs +65 -0
- package/sera-core/skills/awwwards/scripts/serve.mjs +48 -0
- package/sera-core/skills/awwwards/scripts/shoot.mjs +675 -0
- package/sera-core/skills/beceri-yaz/SKILL.md +39 -0
- package/sera-core/skills/brag-slim/LICENSE +21 -0
- package/sera-core/skills/brag-slim/NOTICE +2 -0
- package/sera-core/skills/brag-slim/SKILL.md +108 -0
- package/sera-core/skills/brainstorming/LICENSE +21 -0
- package/sera-core/skills/brainstorming/NOTICE +5 -0
- package/sera-core/skills/brainstorming/SKILL.md +298 -0
- package/sera-core/skills/brainstorming/builder-check-prompt.md +23 -0
- package/sera-core/skills/copywriting/LICENSE +21 -0
- package/sera-core/skills/copywriting/NOTICE +5 -0
- package/sera-core/skills/copywriting/SKILL.md +343 -0
- package/sera-core/skills/copywriting/references/ai-tells.md +309 -0
- package/sera-core/skills/copywriting/references/copy-frameworks.md +432 -0
- package/sera-core/skills/copywriting/references/natural-transitions.md +256 -0
- package/sera-core/skills/cro/LICENSE +21 -0
- package/sera-core/skills/cro/NOTICE +5 -0
- package/sera-core/skills/cro/SKILL.md +198 -0
- package/sera-core/skills/cro/references/experiments.md +248 -0
- package/sera-core/skills/cro/references/form.md +422 -0
- package/sera-core/skills/derin-arastirma/referanslar/arastirma-yontem.md +11 -0
- package/sera-core/skills/emil-design-eng/LICENSE +21 -0
- package/sera-core/skills/emil-design-eng/NOTICE +2 -0
- package/sera-core/skills/emil-design-eng/SKILL.md +684 -0
- package/sera-core/skills/frontend-design/LICENSE.txt +177 -0
- package/sera-core/skills/frontend-design/NOTICE +2 -0
- package/sera-core/skills/frontend-design/SKILL.md +71 -0
- package/sera-core/skills/gorsel-denetim/SKILL.md +30 -0
- package/sera-core/skills/hallmark/LICENSE +21 -0
- package/sera-core/skills/hallmark/NOTICE +5 -0
- package/sera-core/skills/hallmark/SKILL.md +154 -0
- package/sera-core/skills/hallmark/references/anatomy.md +71 -0
- package/sera-core/skills/hallmark/references/brand-truth.md +40 -0
- package/sera-core/skills/hallmark/references/comp.md +104 -0
- package/sera-core/skills/hallmark/references/craft.md +116 -0
- package/sera-core/skills/hallmark/references/dark-mode.md +49 -0
- package/sera-core/skills/hallmark/references/data-viz.md +48 -0
- package/sera-core/skills/hallmark/references/design-md.md +53 -0
- package/sera-core/skills/hallmark/references/direction.md +52 -0
- package/sera-core/skills/hallmark/references/export-formats.md +80 -0
- package/sera-core/skills/hallmark/references/flow.md +131 -0
- package/sera-core/skills/hallmark/references/fonts.md +58 -0
- package/sera-core/skills/hallmark/references/gates.md +243 -0
- package/sera-core/skills/hallmark/references/genres/atmospheric.md +24 -0
- package/sera-core/skills/hallmark/references/genres/editorial.md +24 -0
- package/sera-core/skills/hallmark/references/genres/modern-minimal.md +24 -0
- package/sera-core/skills/hallmark/references/genres/playful.md +24 -0
- package/sera-core/skills/hallmark/references/imagery.md +99 -0
- package/sera-core/skills/hallmark/references/interaction-and-states.md +89 -0
- package/sera-core/skills/hallmark/references/layout.md +104 -0
- package/sera-core/skills/hallmark/references/macrostructures/01-bento-grid.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/02-long-document.md +35 -0
- package/sera-core/skills/hallmark/references/macrostructures/03-marquee-hero.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/04-stat-led.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/05-workbench.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/06-conversational-faq.md +28 -0
- package/sera-core/skills/hallmark/references/macrostructures/07-manifesto.md +28 -0
- package/sera-core/skills/hallmark/references/macrostructures/08-photographic.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/09-quote-led.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/10-specimen.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/11-catalogue.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/12-letter.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/13-index-first.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/14-narrative-workflow.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/15-split-studio.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
- package/sera-core/skills/hallmark/references/macrostructures/17-type-specimen.md +19 -0
- package/sera-core/skills/hallmark/references/macrostructures/18-portfolio-grid.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/19-map-diagram.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures/20-ecosystem-index.md +19 -0
- package/sera-core/skills/hallmark/references/macrostructures/21-component-playground.md +21 -0
- package/sera-core/skills/hallmark/references/macrostructures.md +119 -0
- package/sera-core/skills/hallmark/references/microinteractions.md +80 -0
- package/sera-core/skills/hallmark/references/patterns.md +202 -0
- package/sera-core/skills/hallmark/references/redesign.md +88 -0
- package/sera-core/skills/hallmark/references/responsive.md +46 -0
- package/sera-core/skills/hallmark/references/review-finish.md +19 -0
- package/sera-core/skills/hallmark/references/review-hero.md +20 -0
- package/sera-core/skills/hallmark/references/scroll-choreography.md +110 -0
- package/sera-core/skills/hallmark/references/texture.md +90 -0
- package/sera-core/skills/hallmark/references/themes/README.md +58 -0
- package/sera-core/skills/hallmark/references/themes/almanac.md +103 -0
- package/sera-core/skills/hallmark/references/themes/arcade.md +102 -0
- package/sera-core/skills/hallmark/references/themes/atelier.md +98 -0
- package/sera-core/skills/hallmark/references/themes/bloom.md +102 -0
- package/sera-core/skills/hallmark/references/themes/blueprint.md +103 -0
- package/sera-core/skills/hallmark/references/themes/broadside.md +108 -0
- package/sera-core/skills/hallmark/references/themes/brutal.md +95 -0
- package/sera-core/skills/hallmark/references/themes/carnival.md +104 -0
- package/sera-core/skills/hallmark/references/themes/cobalt.md +101 -0
- package/sera-core/skills/hallmark/references/themes/console.md +99 -0
- package/sera-core/skills/hallmark/references/themes/coral.md +102 -0
- package/sera-core/skills/hallmark/references/themes/darkroom.md +99 -0
- package/sera-core/skills/hallmark/references/themes/dose.md +98 -0
- package/sera-core/skills/hallmark/references/themes/dusk.md +105 -0
- package/sera-core/skills/hallmark/references/themes/editorial.md +97 -0
- package/sera-core/skills/hallmark/references/themes/formwork.md +107 -0
- package/sera-core/skills/hallmark/references/themes/furrow.md +98 -0
- package/sera-core/skills/hallmark/references/themes/garden.md +97 -0
- package/sera-core/skills/hallmark/references/themes/grid.md +101 -0
- package/sera-core/skills/hallmark/references/themes/halftone.md +106 -0
- package/sera-core/skills/hallmark/references/themes/hedgerow.md +104 -0
- package/sera-core/skills/hallmark/references/themes/hum.md +99 -0
- package/sera-core/skills/hallmark/references/themes/ink.md +106 -0
- package/sera-core/skills/hallmark/references/themes/kiln.md +108 -0
- package/sera-core/skills/hallmark/references/themes/loom.md +106 -0
- package/sera-core/skills/hallmark/references/themes/lumen.md +103 -0
- package/sera-core/skills/hallmark/references/themes/manifesto.md +101 -0
- package/sera-core/skills/hallmark/references/themes/midnight.md +97 -0
- package/sera-core/skills/hallmark/references/themes/newsprint.md +102 -0
- package/sera-core/skills/hallmark/references/themes/overprint.md +101 -0
- package/sera-core/skills/hallmark/references/themes/pasteup.md +100 -0
- package/sera-core/skills/hallmark/references/themes/piste.md +99 -0
- package/sera-core/skills/hallmark/references/themes/refract.md +101 -0
- package/sera-core/skills/hallmark/references/themes/ribbon.md +106 -0
- package/sera-core/skills/hallmark/references/themes/rim.md +96 -0
- package/sera-core/skills/hallmark/references/themes/riso.md +98 -0
- package/sera-core/skills/hallmark/references/themes/solstice.md +104 -0
- package/sera-core/skills/hallmark/references/themes/specimen.md +100 -0
- package/sera-core/skills/hallmark/references/themes/spore.md +104 -0
- package/sera-core/skills/hallmark/references/themes/sport.md +101 -0
- package/sera-core/skills/hallmark/references/themes/squeeze.md +99 -0
- package/sera-core/skills/hallmark/references/themes/sticker.md +106 -0
- package/sera-core/skills/hallmark/references/themes/studio.md +99 -0
- package/sera-core/skills/hallmark/references/themes/terminal.md +96 -0
- package/sera-core/skills/hallmark/references/themes/terrazzo.md +106 -0
- package/sera-core/skills/hallmark/references/themes/ultraviolet.md +106 -0
- package/sera-core/skills/hallmark/references/themes/vantage.md +99 -0
- package/sera-core/skills/hallmark/references/themes/vellum.md +105 -0
- package/sera-core/skills/hallmark/references/themes/wayfind.md +105 -0
- package/sera-core/skills/hallmark/references/themes/werkstatt.md +105 -0
- package/sera-core/skills/hallmark/scripts/capture.mjs +132 -0
- package/sera-core/skills/hallmark/scripts/refcheck.mjs +405 -0
- package/sera-core/skills/hallmark/scripts/sloplint-render.mjs +1283 -0
- package/sera-core/skills/hallmark/scripts/sloplint.mjs +4426 -0
- package/sera-core/skills/hallmark/scripts/theme.mjs +660 -0
- package/sera-core/skills/kurum-ici-iletisim/SKILL.md +40 -0
- package/sera-core/skills/launch/LICENSE +21 -0
- package/sera-core/skills/launch/NOTICE +5 -0
- package/sera-core/skills/launch/SKILL.md +385 -0
- package/sera-core/skills/launch/references/shipped-changes.md +84 -0
- package/sera-core/skills/launch/references/site-launch-qa.md +57 -0
- package/sera-core/skills/marka-kimligi/SKILL.md +30 -0
- package/sera-core/skills/mcp-yaz/SKILL.md +41 -0
- package/sera-core/skills/mobil-arayuz/SKILL.md +12 -0
- package/sera-core/skills/mvp-scoping/LICENSE +21 -0
- package/sera-core/skills/mvp-scoping/NOTICE +5 -0
- package/sera-core/skills/mvp-scoping/SKILL.md +95 -0
- package/sera-core/skills/ortak-yazarlik/SKILL.md +32 -0
- package/sera-core/skills/oyun-turleri/SKILL.md +176 -0
- package/sera-core/skills/paralel-sadelestirme/SKILL.md +33 -0
- package/sera-core/skills/phaser-core/LICENSE +201 -0
- package/sera-core/skills/phaser-core/NOTICE +5 -0
- package/sera-core/skills/phaser-core/NOTICE-UPSTREAM +15 -0
- package/sera-core/skills/phaser-core/SKILL.md +245 -0
- package/sera-core/skills/phaser-core/references/scene-flow.md +177 -0
- package/sera-core/skills/pitch-deck/LICENSE +21 -0
- package/sera-core/skills/pitch-deck/NOTICE +5 -0
- package/sera-core/skills/pitch-deck/SKILL.md +103 -0
- package/sera-core/skills/sera-3d-oyun/NOTICE +1 -0
- package/sera-core/skills/sera-3d-oyun/SKILL.md +12 -0
- package/sera-core/skills/sera-3d-oyun/sera-3d.js +3697 -0
- package/sera-core/skills/sera-diyagram/SKILL.md +43 -0
- package/sera-core/skills/sera-ofis-dosya/SKILL.md +3 -0
- package/sera-core/skills/sera-ofis-dosya/referanslar/ofis-ileri.md +46 -0
- package/sera-core/skills/sera-ui-site/NOTICE +1 -0
- package/sera-core/skills/sera-ui-site/SKILL.md +10 -0
- package/sera-core/skills/sera-ui-site/sera-ui.js +83 -0
- package/sera-core/skills/sera-veri-gorsel/SKILL.md +3 -0
- package/sera-core/skills/sera-veri-gorsel/referanslar/palet-dogrula.mjs +80 -0
- package/sera-core/skills/sistem-tarama/SKILL.md +49 -0
- package/sera-core/skills/sistem-tarama/referanslar/komutlar.md +78 -0
- package/sera-core/skills/tasarim-stilleri/SKILL.md +113 -0
- package/sera-core/skills/teardown/LICENSE +22 -0
- package/sera-core/skills/teardown/NOTICE +3 -0
- package/sera-core/skills/teardown/SKILL.md +144 -0
- package/sera-core/skills/teardown/package-lock.json +545 -0
- package/sera-core/skills/teardown/package.json +18 -0
- package/sera-core/skills/teardown/paths.mjs +30 -0
- package/sera-core/skills/teardown/run_sfx.py +10 -0
- package/sera-core/skills/teardown/sfx/__init__.py +10 -0
- package/sera-core/skills/teardown/sfx/__main__.py +64 -0
- package/sera-core/skills/teardown/sfx/dsp.py +453 -0
- package/sera-core/skills/teardown/sfx/loudness.py +72 -0
- package/sera-core/skills/teardown/sfx/mix.py +111 -0
- package/sera-core/skills/teardown/sfx/samples/SOURCES.md +23 -0
- package/sera-core/skills/teardown/sfx/samples/fs-258269-mouth-pop.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-323432-typing.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-329533-room-tone-in-an-apartment-livi.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-329569-roomtone-bedroom-yew.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-339521-vhs-rewind-forward-and-eject.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-349504-triangle-open-04.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-416777-digital-typing-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-426767-apartment-room-tone-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-447909-keyboard-typing.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-447910-plop.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-79388-keyboard-typing-wav.ogg +0 -0
- package/sera-core/skills/teardown/sfx/samples/fs-824189-pop-in-sfx.ogg +0 -0
- package/sera-core/skills/teardown/sfx/score_kit.py +206 -0
- package/sera-core/skills/teardown/sfx/synth.py +294 -0
- package/sera-core/skills/teardown/sheet.mjs +127 -0
- package/sera-core/skills/teardown/sims/beats.py +212 -0
- package/sera-core/skills/teardown/sims/build.mjs +141 -0
- package/sera-core/skills/teardown/sims/capture.mjs +211 -0
- package/sera-core/skills/teardown/sims/cessna-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/cessna-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/cessna-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/cessna-shared/console.js +288 -0
- package/sera-core/skills/teardown/sims/cessna-shared/film.js +254 -0
- package/sera-core/skills/teardown/sims/cessna-shared/flight.js +53 -0
- package/sera-core/skills/teardown/sims/cessna-shared/gear.js +364 -0
- package/sera-core/skills/teardown/sims/cessna-shared/live.js +351 -0
- package/sera-core/skills/teardown/sims/cessna-shared/score.py +41 -0
- package/sera-core/skills/teardown/sims/cessna-shared/stage.js +248 -0
- package/sera-core/skills/teardown/sims/kit/director.js +300 -0
- package/sera-core/skills/teardown/sims/kit/hud.js +194 -0
- package/sera-core/skills/teardown/sims/kit/runtime.js +168 -0
- package/sera-core/skills/teardown/sims/kit/stage3d.js +114 -0
- package/sera-core/skills/teardown/sims/kit/style.css +137 -0
- package/sera-core/skills/teardown/sims/kit/util.js +79 -0
- package/sera-core/skills/teardown/sims/kit/warm.js +66 -0
- package/sera-core/skills/teardown/sims/strandbeest-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/strandbeest-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/strandbeest-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/beast.js +419 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/console.js +375 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/film.js +352 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/jansen.js +67 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/live.js +420 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/score.py +85 -0
- package/sera-core/skills/teardown/sims/strandbeest-shared/stage.js +463 -0
- package/sera-core/skills/teardown/sims/v8-film/main.js +4 -0
- package/sera-core/skills/teardown/sims/v8-film/timeline.json +1 -0
- package/sera-core/skills/teardown/sims/v8-live/main.js +5 -0
- package/sera-core/skills/teardown/sims/v8-shared/console.js +339 -0
- package/sera-core/skills/teardown/sims/v8-shared/engine.js +624 -0
- package/sera-core/skills/teardown/sims/v8-shared/film.js +239 -0
- package/sera-core/skills/teardown/sims/v8-shared/kin.js +86 -0
- package/sera-core/skills/teardown/sims/v8-shared/live.js +374 -0
- package/sera-core/skills/teardown/sims/v8-shared/score.py +60 -0
- package/sera-core/skills/teardown/sims/v8-shared/stage.js +173 -0
- package/sera-core/skills/teardown/wave.mjs +67 -0
- package/sera-core/skills/toplu-degisiklik/SKILL.md +39 -0
- package/sera-core/skills/ui-ux-pro-max/LICENSE +21 -0
- package/sera-core/skills/ui-ux-pro-max/NOTICE +5 -0
- package/sera-core/skills/ui-ux-pro-max/SKILL.md +13 -0
- package/sera-core/skills/ui-ux-pro-max/references/pro-rules.md +117 -0
- package/sera-core/skills/ui-ux-pro-max/references/quick-reference.md +266 -0
- package/sera-core/skills/unslop/LICENSE.md +410 -0
- package/sera-core/skills/unslop/SKILL.md +217 -0
- package/sera-core/skills/unslop/references/effects.md +113 -0
- package/sera-core/skills/unslop/references/refs/unslop-dashboard-after.webp +0 -0
- package/sera-core/skills/unslop/references/refs/unslop-hero-after.webp +0 -0
- package/sera-core/skills/unslop/references/refs.md +16 -0
- package/sera-core/skills/unslop/references/rtl.md +72 -0
- package/sera-core/skills/unslop/references/signs.md +125 -0
- package/sera-core/skills/unslop/references/tokens.md +137 -0
- package/sera-core/skills/unslop/references/visuals.md +84 -0
- package/sera-core/skills/unslop/scripts/snapshot.mjs +197 -0
- package/sera-core/skills/uretken-sanat/SKILL.md +42 -0
- package/sera-core/skills/verification-before-completion/LICENSE +21 -0
- package/sera-core/skills/verification-before-completion/NOTICE +5 -0
- package/sera-core/skills/verification-before-completion/SKILL.md +120 -0
- package/sera-core/skills/web-yayin-listesi/SKILL.md +3 -0
- package/sera-core/src/app-master.ts +2 -2
- package/sera-core/src/app-verify.ts +33 -0
- package/sera-core/src/extension.ts +16 -2
- package/sera-core/src/generated/build-rules.ts +81 -17
- package/sera-core/src/generated/quality-probe.ts +2 -0
- package/sera-core/src/generated/zero-knowledge.ts +36 -9
- package/sera-core/src/image-tool.ts +12 -2
- package/sera-core/src/link-data-tools.ts +411 -0
- package/sera-core/src/skills.ts +54 -18
- package/sera-core/src/video-tool.ts +51 -0
- package/sera-core/src/zk.ts +7 -3
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
// The SB-10 console: an engineering sheet laid over the full-bleed dune (warm paper
|
|
2
|
+
// panels, sepia ink) with a burnt-orange accent that matches the foot traces. Fixed 1600 x 900 CSS layout;
|
|
3
|
+
// update(state) redraws every live part from the frame's state (the linkage panel is the hero leg's real pose, the
|
|
4
|
+
// contact chart the real stance of all 20 feet, the crank dial the real throws), so a captured frame depends only on t.
|
|
5
|
+
import {HOLY, PATH} from './jansen.js';
|
|
6
|
+
|
|
7
|
+
export const C = {ink: '#2f2a22', mute: '#8a7f6c', faint: '#b9ae99', line: 'rgba(110,98,78,.55)', paper: 'rgba(243,238,227,.88)', accent: '#d0592a', red: '#c9342a', dark: '#3a342b'};
|
|
8
|
+
export const VIEW_KEYS = ['cine', 'leg', 'front', 'side', 'top'];
|
|
9
|
+
export const TOGGLES = ['iso', 'trace'];
|
|
10
|
+
// the order the hero leg's labels appear in, and what each one is
|
|
11
|
+
export const LABELS = [
|
|
12
|
+
['a', 'PIVOT OFFSET · X'],
|
|
13
|
+
['l', 'PIVOT OFFSET · Y'],
|
|
14
|
+
['m', 'CRANK'],
|
|
15
|
+
['j', 'UPPER DRIVE BAR'],
|
|
16
|
+
['k', 'LOWER DRIVE BAR'],
|
|
17
|
+
['b', 'UPPER ROCKER'],
|
|
18
|
+
['c', 'LOWER ROCKER'],
|
|
19
|
+
['d', 'UPPER TRIANGLE'],
|
|
20
|
+
['e', 'UPPER TRIANGLE'],
|
|
21
|
+
['f', 'CONNECTING BAR'],
|
|
22
|
+
['g', 'LOWER TRIANGLE'],
|
|
23
|
+
['h', 'SHIN'],
|
|
24
|
+
['i', 'SHIN BRACE'],
|
|
25
|
+
];
|
|
26
|
+
const TABLE = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'];
|
|
27
|
+
const CSS = `
|
|
28
|
+
#app{font-family:Inter,system-ui,sans-serif;color:${C.ink};-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
|
|
29
|
+
.ui{position:absolute;inset:0;pointer-events:none}
|
|
30
|
+
.pn{position:absolute;background:${C.paper};border:1px solid ${C.line};backdrop-filter:blur(3px)}
|
|
31
|
+
.hd{font-size:9px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;white-space:nowrap}
|
|
32
|
+
.hd i{font-style:normal;color:${C.accent};margin-right:7px;letter-spacing:0}
|
|
33
|
+
.lb{font-size:8px;font-weight:600;letter-spacing:1.3px;color:${C.mute};text-transform:uppercase;white-space:nowrap}
|
|
34
|
+
.vl{font-size:10.5px;font-weight:600;letter-spacing:.4px;white-space:nowrap}
|
|
35
|
+
.mono{font-family:'JetBrains Mono',ui-monospace,monospace}
|
|
36
|
+
.vb{position:absolute;height:19px;padding:0 9px;display:flex;align-items:center;font-size:8.5px;font-weight:700;letter-spacing:1.4px;border:1px solid ${C.line};background:rgba(243,238,227,.9);color:${C.dark}}
|
|
37
|
+
.call{position:absolute;white-space:nowrap;background:rgba(243,238,227,.86);border:1px solid ${C.line};padding:4px 7px 4px}
|
|
38
|
+
.call b{display:block;font-size:8.5px;font-weight:700;letter-spacing:1.4px}
|
|
39
|
+
.call span{display:block;font-size:7.5px;letter-spacing:1.1px;color:${C.mute};margin-top:2px}
|
|
40
|
+
.tag{position:absolute;display:flex;align-items:center;gap:5px;white-space:nowrap;transform:translate(-50%,-50%)}
|
|
41
|
+
.tag b{width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font:700 10px 'JetBrains Mono',monospace;color:#f6f1e6;background:${C.dark};box-shadow:0 0 0 1.5px rgba(246,241,230,.9)}
|
|
42
|
+
.tag span{font:600 8.5px 'JetBrains Mono',monospace;color:${C.dark};background:rgba(243,238,227,.86);padding:1px 4px;border:1px solid ${C.line}}
|
|
43
|
+
.cur{position:absolute;left:0;top:0;z-index:50;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
|
|
44
|
+
.ring{position:absolute;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:1.6px solid ${C.accent};opacity:0;z-index:49}
|
|
45
|
+
`;
|
|
46
|
+
const el = (h) => {
|
|
47
|
+
const d = document.createElement('div');
|
|
48
|
+
d.innerHTML = h.trim();
|
|
49
|
+
return d.firstElementChild;
|
|
50
|
+
};
|
|
51
|
+
const SPECS = [
|
|
52
|
+
['CLASS', 'WIND-POWERED WALKER'],
|
|
53
|
+
['LEGS', '20 · 10 CRANK THROWS × 2'],
|
|
54
|
+
['LINKAGE', 'JANSEN · 11 BARS PER LEG'],
|
|
55
|
+
['LENGTH', '3.1 m'],
|
|
56
|
+
['HEIGHT', '2.3 m TO SAIL TIP'],
|
|
57
|
+
['FRAME', 'PVC CONDUIT Ø 28 mm'],
|
|
58
|
+
['DRIVE', '10 SAILS → 1 CRANKSHAFT'],
|
|
59
|
+
];
|
|
60
|
+
export const WIND_MAX = 16;
|
|
61
|
+
|
|
62
|
+
export function createConsole(app) {
|
|
63
|
+
const style = document.createElement('style');
|
|
64
|
+
style.textContent = CSS;
|
|
65
|
+
document.head.appendChild(style);
|
|
66
|
+
const ui = el(`<div class="ui"></div>`);
|
|
67
|
+
app.appendChild(ui);
|
|
68
|
+
const add = (h) => {
|
|
69
|
+
const n = el(h);
|
|
70
|
+
ui.appendChild(n);
|
|
71
|
+
return n;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// ------------------------------------------------------------ top bar: the sheet's header, views and toggles
|
|
75
|
+
add(`<div style="position:absolute;left:12px;right:12px;top:8px;height:24px;border-bottom:1px solid ${C.line}"></div>`);
|
|
76
|
+
add(`<div class="lb" style="left:18px;top:14px;position:absolute;color:${C.dark}">◇ BEACH KINEMATICS LAB · WIND DIVISION</div>`);
|
|
77
|
+
add(`<div class="lb mono" style="position:absolute;left:0;right:0;top:14px;text-align:center;color:${C.dark};letter-spacing:2px">◆ SB-10-001 ◆</div>`);
|
|
78
|
+
const btn = {};
|
|
79
|
+
{
|
|
80
|
+
let x = 1588;
|
|
81
|
+
const right = (key, txt, w) => {
|
|
82
|
+
x -= w;
|
|
83
|
+
btn[key] = add(`<div class="vb" style="left:${x}px;top:10px;width:${w}px;justify-content:center">${txt}</div>`);
|
|
84
|
+
x -= 4;
|
|
85
|
+
};
|
|
86
|
+
right('pause', '❚❚ PAUSE', 84);
|
|
87
|
+
x -= 10;
|
|
88
|
+
right('trace', 'TRACE FEET', 90);
|
|
89
|
+
right('iso', 'ISOLATE LEG', 98);
|
|
90
|
+
x -= 10;
|
|
91
|
+
for (const k of [...VIEW_KEYS].reverse()) right(k, k.toUpperCase(), k.length * 7 + 22);
|
|
92
|
+
add(`<div class="lb" style="position:absolute;left:${x - 34}px;top:15px">VIEW</div>`);
|
|
93
|
+
}
|
|
94
|
+
add(`<div class="lb" style="position:absolute;right:16px;top:36px;letter-spacing:1px;font-size:7.5px">DRAG TO ORBIT · 1–5 VIEWS · I ISOLATE · T TRACE · SPACE PAUSE</div>`);
|
|
95
|
+
|
|
96
|
+
// ------------------------------------------------------------ title block, specs and live readings, top left
|
|
97
|
+
add(`<div style="position:absolute;left:34px;top:50px;font-size:31px;font-weight:500;letter-spacing:.6px;line-height:1">STRANDBEEST <span style="color:${C.accent}">SB-10</span></div>`);
|
|
98
|
+
add(`<div class="lb" style="position:absolute;left:35px;top:88px;color:${C.dark};font-size:8.5px;letter-spacing:1.6px">WIND-POWERED WALKING MACHINE · JANSEN LINKAGE</div>`);
|
|
99
|
+
add(`<div style="position:absolute;left:35px;top:110px;display:grid;grid-template-columns:96px auto;row-gap:6px">${SPECS.map(([k, v]) => `<span class="lb">${k}:</span><span class="vl">${v}</span>`).join('')}
|
|
100
|
+
<span style="grid-column:1/3;height:1px;background:${C.line};margin:3px 0"></span>
|
|
101
|
+
<span class="lb">WIND:</span><span class="vl mono" data-k="wind"></span>
|
|
102
|
+
<span class="lb">CRANK:</span><span class="vl mono" data-k="rpm"></span>
|
|
103
|
+
<span class="lb">GROUND SPEED:</span><span class="vl mono" data-k="speed"></span>
|
|
104
|
+
<span class="lb">FEET ON SAND:</span><span class="vl mono" data-k="feet"></span></div>`);
|
|
105
|
+
|
|
106
|
+
// ------------------------------------------------------------ the holy numbers, left
|
|
107
|
+
const HN = {x: 34, y: 368, w: 262, h: 352};
|
|
108
|
+
add(`<div class="pn" style="left:${HN.x}px;top:${HN.y}px;width:${HN.w}px;height:${HN.h}px"></div>`);
|
|
109
|
+
add(`<div class="hd" style="position:absolute;left:${HN.x + 12}px;top:${HN.y + 11}px"><i>›››</i>THE ELEVEN HOLY NUMBERS</div>`);
|
|
110
|
+
add(`<div class="lb" style="position:absolute;left:${HN.x + 12}px;top:${HN.y + 26}px;font-size:7px">LINK LENGTHS · JANSEN 1990 · UNITS ≈ CM</div>`);
|
|
111
|
+
const rows = {};
|
|
112
|
+
TABLE.forEach((k, i) => {
|
|
113
|
+
const y = HN.y + 46 + i * 21 + (i >= 11 ? 10 : 0);
|
|
114
|
+
rows[k] = add(`<div style="position:absolute;left:${HN.x + 12}px;top:${y}px;width:${HN.w - 24}px;height:19px;display:flex;align-items:center;gap:9px">
|
|
115
|
+
<span class="mono" data-r="dot" style="width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-size:9.5px;font-weight:700;border:1px solid ${C.line}">${k}</span>
|
|
116
|
+
<span class="mono" data-r="val" style="font-size:11px;font-weight:600;width:38px;text-align:right">${HOLY[k].toFixed(1)}</span>
|
|
117
|
+
<span style="flex:1;height:5px;background:rgba(110,98,78,.14);position:relative"><span data-r="bar" style="position:absolute;left:0;top:0;bottom:0;width:${((HOLY[k] / 66) * 100).toFixed(1)}%;background:${C.faint}"></span></span></div>`);
|
|
118
|
+
});
|
|
119
|
+
add(`<div style="position:absolute;left:${HN.x + 12}px;top:${HN.y + 46 + 11 * 21 + 1}px;width:${HN.w - 24}px;height:0;border-top:1px dashed ${C.line}"></div>`);
|
|
120
|
+
add(`<div class="lb" style="position:absolute;left:${HN.x + 12}px;top:${HN.y + HN.h - 18}px;font-size:7px">l, m · THE CRANK AND ITS AXLE OFFSET</div>`);
|
|
121
|
+
|
|
122
|
+
// ------------------------------------------------------------ leg linkage, top right
|
|
123
|
+
const LP = {x: 1300, y: 52, w: 272, h: 398};
|
|
124
|
+
add(`<div class="pn" style="left:${LP.x}px;top:${LP.y}px;width:${LP.w}px;height:${LP.h}px"></div>`);
|
|
125
|
+
add(`<div class="hd" style="position:absolute;left:${LP.x + 12}px;top:${LP.y + 11}px"><i>›››</i>LEG LINKAGE · LEG 01F</div>`);
|
|
126
|
+
const link = add(`<svg style="position:absolute;left:${LP.x + 12}px;top:${LP.y + 30}px" width="248" height="290"></svg>`);
|
|
127
|
+
add(`<div style="position:absolute;left:${LP.x + 12}px;top:${LP.y + 326}px;width:${LP.w - 24}px;display:grid;grid-template-columns:1fr 1fr;row-gap:5px">
|
|
128
|
+
<span class="lb">STANCE</span><span class="vl mono" style="text-align:right">155° OF 360°</span>
|
|
129
|
+
<span class="lb">STRIDE</span><span class="vl mono" style="text-align:right">672 mm</span>
|
|
130
|
+
<span class="lb">FOOT LIFT</span><span class="vl mono" style="text-align:right">268 mm</span>
|
|
131
|
+
<span class="lb">CRANK ANGLE</span><span class="vl mono" style="text-align:right" data-k="crank"></span></div>`);
|
|
132
|
+
|
|
133
|
+
// ------------------------------------------------------------ wind and drive, right
|
|
134
|
+
const WP = {x: 1300, y: 462, w: 272, h: 258};
|
|
135
|
+
add(`<div class="pn" style="left:${WP.x}px;top:${WP.y}px;width:${WP.w}px;height:${WP.h}px"></div>`);
|
|
136
|
+
add(`<div class="hd" style="position:absolute;left:${WP.x + 12}px;top:${WP.y + 11}px"><i>›››</i>WIND · DRIVE TRAIN</div>`);
|
|
137
|
+
const SL = {x: WP.x + 16, y: WP.y + 54, w: WP.w - 32};
|
|
138
|
+
add(`<div class="lb" style="position:absolute;left:${SL.x}px;top:${SL.y - 18}px">WIND SPEED</div>`);
|
|
139
|
+
const windVal = add(`<div class="vl mono" style="position:absolute;right:${1600 - (SL.x + SL.w)}px;top:${SL.y - 20}px;color:${C.accent}"></div>`);
|
|
140
|
+
add(`<div style="position:absolute;left:${SL.x}px;top:${SL.y}px;width:${SL.w}px;height:3px;background:rgba(110,98,78,.22)"></div>`);
|
|
141
|
+
const fill = add(`<div style="position:absolute;left:${SL.x}px;top:${SL.y}px;height:3px;background:${C.accent}"></div>`);
|
|
142
|
+
const knob = add(`<div style="position:absolute;top:${SL.y - 6.5}px;width:15px;height:15px;margin-left:-7.5px;border-radius:50%;background:#f6f1e6;border:1.6px solid ${C.dark}"></div>`);
|
|
143
|
+
add(`<svg style="position:absolute;left:${SL.x}px;top:${SL.y + 8}px" width="${SL.w}" height="14">${[0, 4, 8, 12, 16].map((v) => `<line x1="${(v / WIND_MAX) * SL.w}" x2="${(v / WIND_MAX) * SL.w}" y1="0" y2="4" stroke="${C.dark}" stroke-width=".8"/><text x="${Math.min(SL.w - 8, Math.max(4, (v / WIND_MAX) * SL.w))}" y="12" font-size="6.5" text-anchor="middle" fill="${C.mute}">${v}${v === 16 ? ' m/s' : ''}</text>`).join('')}</svg>`);
|
|
144
|
+
const windHist = add(`<svg style="position:absolute;left:${SL.x}px;top:${SL.y + 34}px" width="${SL.w}" height="58"></svg>`);
|
|
145
|
+
add(`<div style="position:absolute;left:${SL.x}px;top:${SL.y + 102}px;width:${SL.w}px;display:grid;grid-template-columns:1fr auto;row-gap:5px">
|
|
146
|
+
<span class="lb">SAIL LOAD</span><span class="vl mono" data-k="load"></span>
|
|
147
|
+
<span class="lb">CRANKSHAFT</span><span class="vl mono" data-k="rpm2"></span>
|
|
148
|
+
<span class="lb">STEPS / MIN</span><span class="vl mono" data-k="steps"></span>
|
|
149
|
+
<span class="lb">DISTANCE WALKED</span><span class="vl mono" data-k="dist"></span></div>`);
|
|
150
|
+
|
|
151
|
+
// ------------------------------------------------------------ bottom strip: contact chart, crankshaft, ride
|
|
152
|
+
const BY = 734;
|
|
153
|
+
const BH = 154;
|
|
154
|
+
add(`<div class="pn" style="left:34px;top:${BY}px;width:960px;height:${BH}px"></div>`);
|
|
155
|
+
add(`<div class="hd" style="position:absolute;left:46px;top:${BY + 11}px"><i>›››</i>FOOT CONTACT · 20 LEGS · LAST 3 S</div>`);
|
|
156
|
+
add(`<div class="lb" style="position:absolute;left:760px;top:${BY + 12}px"><span style="display:inline-block;width:14px;height:6px;background:${C.dark};vertical-align:middle;margin-right:6px"></span>ON SAND <span style="display:inline-block;width:14px;height:6px;background:${C.accent};vertical-align:middle;margin:0 6px 0 14px"></span>LEG 01F</div>`);
|
|
157
|
+
const gait = add(`<svg style="position:absolute;left:46px;top:${BY + 30}px" width="936" height="116"></svg>`);
|
|
158
|
+
|
|
159
|
+
add(`<div class="pn" style="left:1002px;top:${BY}px;width:276px;height:${BH}px"></div>`);
|
|
160
|
+
add(`<div class="hd" style="position:absolute;left:1014px;top:${BY + 11}px"><i>›››</i>CRANKSHAFT · 10 THROWS</div>`);
|
|
161
|
+
const crank = add(`<svg style="position:absolute;left:1012px;top:${BY + 26}px" width="124" height="124"></svg>`);
|
|
162
|
+
add(`<div style="position:absolute;left:1142px;top:${BY + 34}px;width:126px;display:flex;flex-direction:column;gap:6px">
|
|
163
|
+
<div><div class="lb">PHASE STEP</div><div class="vl mono">36.0°</div></div>
|
|
164
|
+
<div><div class="lb">THROW RADIUS</div><div class="vl mono">m = 15.0</div></div>
|
|
165
|
+
<div><div class="lb">THROW 01 AT</div><div class="vl mono" data-k="throw"></div></div>
|
|
166
|
+
<div><div class="lb">WAVE</div><div class="vl mono">HEAD → TAIL</div></div></div>`);
|
|
167
|
+
|
|
168
|
+
add(`<div class="pn" style="left:1286px;top:${BY}px;width:286px;height:${BH}px"></div>`);
|
|
169
|
+
add(`<div class="hd" style="position:absolute;left:1298px;top:${BY + 11}px"><i>›››</i>RIDE HEIGHT · FOOT LIFT</div>`);
|
|
170
|
+
const ride = add(`<svg style="position:absolute;left:1296px;top:${BY + 28}px" width="268" height="96"></svg>`);
|
|
171
|
+
add(`<div style="position:absolute;left:1298px;top:${BY + 128}px;width:262px;display:flex;justify-content:space-between">
|
|
172
|
+
<span class="lb"><b style="color:${C.accent}">—</b> FOOT 01F <b class="mono" style="color:${C.ink}" data-k="lift"></b></span>
|
|
173
|
+
<span class="lb"><b style="color:${C.ink}">—</b> BODY <b class="mono" style="color:${C.ink}" data-k="body"></b></span></div>`);
|
|
174
|
+
|
|
175
|
+
// ------------------------------------------------------------ overlays: callouts, leg labels, the pointer
|
|
176
|
+
const callG = add(`<div data-callouts style="position:absolute;inset:0"></div>`);
|
|
177
|
+
const callSvg = add(`<svg data-callouts style="position:absolute;inset:0;overflow:visible" width="1600" height="900"></svg>`);
|
|
178
|
+
const tags = add(`<div data-callouts style="position:absolute;inset:0"></div>`);
|
|
179
|
+
const ring = add(`<div class="ring"></div>`);
|
|
180
|
+
const cur = add(`<div class="cur"><svg width="24" height="24" viewBox="0 0 34 34"><path d="M4 3 L30 13.5 L17.5 17.5 L13.5 30 Z" fill="#1d1a16" stroke="#fff" stroke-width="2.2" stroke-linejoin="round"/></svg></div>`);
|
|
181
|
+
|
|
182
|
+
const K = {};
|
|
183
|
+
for (const n of ui.querySelectorAll('[data-k]')) K[n.dataset.k] = n;
|
|
184
|
+
const centre = (n) => {
|
|
185
|
+
const r = n.getBoundingClientRect();
|
|
186
|
+
return [r.left + r.width / 2, r.top + r.height / 2];
|
|
187
|
+
};
|
|
188
|
+
const spots = Object.fromEntries(Object.entries(btn).map(([k, n]) => [k, centre(n)]));
|
|
189
|
+
const knobAt = (w) => [SL.x + (w / WIND_MAX) * SL.w, SL.y + 1.5];
|
|
190
|
+
// the screen areas the panels cover, so a callout never lands under one
|
|
191
|
+
const PANELS = [[1300, 52, 1572, 720], [34, 368, 296, 720], [34, BY, 1572, 888], [30, 44, 330, 340], [1000, 6, 1592, 44]];
|
|
192
|
+
const covered = (x, y) => PANELS.some(([a, b, c, d]) => x > a - 8 && x < c + 8 && y > b - 8 && y < d + 8);
|
|
193
|
+
|
|
194
|
+
const pointer = (c) => {
|
|
195
|
+
cur.style.display = c.x < 0 ? 'none' : 'block';
|
|
196
|
+
cur.style.transform = `translate(${(c.x - 3).toFixed(2)}px, ${(c.y - 2).toFixed(2)}px) scale(${c.press ? 0.88 : 1})`;
|
|
197
|
+
ring.style.left = `${c.ringX}px`;
|
|
198
|
+
ring.style.top = `${c.ringY}px`;
|
|
199
|
+
ring.style.opacity = String(c.ring * 0.85);
|
|
200
|
+
ring.style.transform = `scale(${(0.35 + 0.9 * (1 - c.ring)).toFixed(3)})`;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
// the linkage panel's frame: Jansen units to panel px, walking to the right like the 3D view of leg 01F
|
|
204
|
+
const LS = 2.4;
|
|
205
|
+
const LX = (u) => 54 - u * LS;
|
|
206
|
+
const LY = (v) => 58 - v * LS;
|
|
207
|
+
const pathD = PATH.filter((_, i) => i % 6 === 0)
|
|
208
|
+
.map(([u, v], i) => `${i ? 'L' : 'M'}${LX(u).toFixed(1)} ${LY(v).toFixed(1)}`)
|
|
209
|
+
.join(' ');
|
|
210
|
+
const LINKS2 = [['A', 'B', 'j'], ['A', 'C', 'k'], ['P', 'B', 'b'], ['P', 'C', 'c'], ['P', 'D', 'd'], ['B', 'D', 'e'], ['D', 'E', 'f'], ['C', 'E', 'g'], ['E', 'F', 'h'], ['C', 'F', 'i'], ['O', 'A', 'm']];
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
spots,
|
|
214
|
+
btn,
|
|
215
|
+
root: ui,
|
|
216
|
+
covered,
|
|
217
|
+
knobAt,
|
|
218
|
+
update(s) {
|
|
219
|
+
// live readings
|
|
220
|
+
K.wind.textContent = `${s.wind.toFixed(1)} m/s`;
|
|
221
|
+
K.rpm.textContent = `${s.rpm.toFixed(1)} rpm`;
|
|
222
|
+
K.speed.textContent = `${s.speed.toFixed(2)} m/s`;
|
|
223
|
+
K.feet.textContent = `${s.feetDown} / 20`;
|
|
224
|
+
K.crank.textContent = `${((((s.crankDeg % 360) + 360) % 360)).toFixed(0).padStart(3, '0')}°`;
|
|
225
|
+
K.load.textContent = `${(s.wind * s.wind * 0.61 * 0.9 * 10 * 0.001).toFixed(2)} kN`;
|
|
226
|
+
K.rpm2.textContent = `${s.rpm.toFixed(1)} rpm`;
|
|
227
|
+
K.steps.textContent = `${(s.rpm * 20).toFixed(0)}`;
|
|
228
|
+
K.dist.textContent = `${s.dist.toFixed(1)} m`;
|
|
229
|
+
K.throw.textContent = `${((((s.crankDeg % 360) + 360) % 360)).toFixed(0).padStart(3, '0')}°`;
|
|
230
|
+
K.lift.textContent = `${s.liftMM.toFixed(0)} mm`;
|
|
231
|
+
K.body.textContent = `±${s.bodyMM.toFixed(1)} mm`;
|
|
232
|
+
|
|
233
|
+
// the holy numbers: revealed rows inked, the newest one lit
|
|
234
|
+
for (const k of TABLE) {
|
|
235
|
+
const r = rows[k];
|
|
236
|
+
const st = s.rows[k] || 0; // 0 idle, 1 shown, 2 lit
|
|
237
|
+
const dot = r.querySelector('[data-r=dot]');
|
|
238
|
+
const bar = r.querySelector('[data-r=bar]');
|
|
239
|
+
dot.style.background = st === 2 ? C.accent : st === 1 ? C.dark : 'transparent';
|
|
240
|
+
dot.style.color = st ? '#f6f1e6' : C.dark;
|
|
241
|
+
dot.style.borderColor = st ? 'transparent' : C.line;
|
|
242
|
+
bar.style.background = st === 2 ? C.accent : st === 1 ? C.dark : C.faint;
|
|
243
|
+
r.querySelector('[data-r=val]').style.color = st === 2 ? C.accent : C.ink;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// the linkage panel: the hero leg's live pose, its foot's path, the stance arc, letters on the bars
|
|
247
|
+
{
|
|
248
|
+
const J = s.leg;
|
|
249
|
+
const P2 = (k) => `${LX(J[k][0]).toFixed(1)} ${LY(J[k][1]).toFixed(1)}`;
|
|
250
|
+
let h = `<line x1="0" x2="248" y1="${LY(-91.83 - 2.75)}" y2="${LY(-91.83 - 2.75)}" stroke="${C.dark}" stroke-width=".8"/>`;
|
|
251
|
+
for (let i = 0; i < 31; i++) h += `<line x1="${i * 8}" y1="${LY(-94.6) + 2}" x2="${i * 8 + 5}" y2="${LY(-94.6) + 7}" stroke="${C.faint}" stroke-width=".6"/>`;
|
|
252
|
+
h += `<path d="${pathD} Z" fill="none" stroke="${C.accent}" stroke-width="1.3" stroke-dasharray="3 2" opacity=".85"/>`;
|
|
253
|
+
// dimension lines for a and l
|
|
254
|
+
h += `<g stroke="${C.mute}" stroke-width=".6" fill="none"><path d="M${LX(0)} ${LY(14)} V${LY(4)} M${LX(-38)} ${LY(14)} V${LY(-4)}"/><path d="M${LX(0)} ${LY(11)} H${LX(-38)}" stroke-dasharray="2 2"/><path d="M${LX(-46)} ${LY(0)} H${LX(-40)} M${LX(-46)} ${LY(-7.8)} H${LX(-40)} M${LX(-44)} ${LY(0)} V${LY(-7.8)}"/></g>`;
|
|
255
|
+
h += `<text x="${LX(-19)}" y="${LY(13)}" font-size="8" text-anchor="middle" fill="${C.mute}" font-family="JetBrains Mono">a</text><text x="${LX(-49)}" y="${LY(-4.5)}" font-size="8" text-anchor="middle" fill="${C.mute}" font-family="JetBrains Mono">l</text>`;
|
|
256
|
+
h += `<circle cx="${LX(0)}" cy="${LY(0)}" r="${15 * LS}" fill="none" stroke="${C.faint}" stroke-width=".7" stroke-dasharray="2 2"/>`;
|
|
257
|
+
for (const [a, b, k] of LINKS2) {
|
|
258
|
+
const lit = s.rows[k] === 2;
|
|
259
|
+
h += `<line x1="${LX(J[a][0]).toFixed(1)}" y1="${LY(J[a][1]).toFixed(1)}" x2="${LX(J[b][0]).toFixed(1)}" y2="${LY(J[b][1]).toFixed(1)}" stroke="${lit ? C.accent : k === 'm' ? C.dark : C.ink}" stroke-width="${lit ? 3 : k === 'm' ? 2.6 : 2}" stroke-linecap="round"/>`;
|
|
260
|
+
}
|
|
261
|
+
for (const k of ['O', 'P', 'A', 'B', 'C', 'D', 'E']) h += `<circle cx="${LX(J[k][0]).toFixed(1)}" cy="${LY(J[k][1]).toFixed(1)}" r="${k === 'O' || k === 'P' ? 3.6 : 2.8}" fill="${k === 'O' || k === 'P' ? C.dark : '#f3eee3'}" stroke="${C.red}" stroke-width="1.4"/>`;
|
|
262
|
+
h += `<path d="M${LX(-8)} ${LY(-3)} l-6 6 h12z" fill="none" stroke="${C.dark}" stroke-width=".8"/><path d="M${LX(-38) - 6} ${LY(-7.8) + 9} h12" stroke="${C.dark}" stroke-width=".8"/>`;
|
|
263
|
+
h += `<ellipse cx="${LX(J.F[0]).toFixed(1)}" cy="${(LY(J.F[1]) + 2).toFixed(1)}" rx="6" ry="3" fill="${C.dark}"/>`;
|
|
264
|
+
h += `<circle cx="${LX(J.F[0]).toFixed(1)}" cy="${LY(J.F[1]).toFixed(1)}" r="4.5" fill="none" stroke="${C.accent}" stroke-width="1.6"/>`;
|
|
265
|
+
for (const [a, b, k] of LINKS2) {
|
|
266
|
+
const mx = (LX(J[a][0]) + LX(J[b][0])) / 2;
|
|
267
|
+
const my = (LY(J[a][1]) + LY(J[b][1])) / 2;
|
|
268
|
+
const lit = s.rows[k] === 2;
|
|
269
|
+
h += `<circle cx="${mx.toFixed(1)}" cy="${my.toFixed(1)}" r="5.6" fill="${lit ? C.accent : '#f3eee3'}" stroke="${lit ? C.accent : C.line}" stroke-width=".8"/><text x="${mx.toFixed(1)}" y="${(my + 2.6).toFixed(1)}" font-size="7.5" font-weight="700" text-anchor="middle" fill="${lit ? '#f6f1e6' : C.dark}" font-family="JetBrains Mono">${k}</text>`;
|
|
270
|
+
}
|
|
271
|
+
h += `<text x="244" y="${LY(-91.83) - 6}" font-size="6.5" text-anchor="end" fill="${C.mute}">WALK →</text>`;
|
|
272
|
+
link.innerHTML = h;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// wind: the slider, the last 12 s of wind
|
|
276
|
+
{
|
|
277
|
+
const [kx] = knobAt(s.wind);
|
|
278
|
+
knob.style.left = `${kx.toFixed(1)}px`;
|
|
279
|
+
knob.style.transform = `scale(${s.drag ? 1.18 : 1})`;
|
|
280
|
+
knob.style.borderColor = s.drag ? C.accent : C.dark;
|
|
281
|
+
fill.style.width = `${(kx - SL.x).toFixed(1)}px`;
|
|
282
|
+
windVal.textContent = `${s.wind.toFixed(1)} m/s`;
|
|
283
|
+
const W = SL.w;
|
|
284
|
+
let p = '';
|
|
285
|
+
s.windHist.forEach((w, i) => (p += `${i ? 'L' : 'M'}${((i / (s.windHist.length - 1)) * W).toFixed(1)} ${(54 - (w / WIND_MAX) * 50).toFixed(1)}`));
|
|
286
|
+
windHist.innerHTML = `<rect x="0" y="0" width="${W}" height="56" fill="rgba(110,98,78,.06)"/>${[4, 8, 12].map((v) => `<line x1="0" x2="${W}" y1="${54 - (v / WIND_MAX) * 50}" y2="${54 - (v / WIND_MAX) * 50}" stroke="${C.faint}" stroke-width=".5" stroke-dasharray="2 3"/>`).join('')}<path d="${p} L${W} 56 L0 56 Z" fill="rgba(208,89,42,.12)"/><path d="${p}" fill="none" stroke="${C.accent}" stroke-width="1.4"/><text x="2" y="9" font-size="6.5" fill="${C.mute}">LAST 12 S</text>`;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// contact chart: a row per leg, ink where the foot is on the sand; the wave runs down the rows
|
|
290
|
+
{
|
|
291
|
+
const W = 936;
|
|
292
|
+
const x0 = 46;
|
|
293
|
+
const rowH = 5.2;
|
|
294
|
+
let h = '';
|
|
295
|
+
s.gait.forEach((row, r) => {
|
|
296
|
+
const y = 4 + r * rowH + (r >= 10 ? 4 : 0);
|
|
297
|
+
const hero = r === 0;
|
|
298
|
+
h += `<text x="0" y="${y + 4.4}" font-size="5.6" fill="${C.mute}" font-family="JetBrains Mono">${String((r % 10) + 1).padStart(2, '0')}${r < 10 ? 'F' : 'B'}</text>`;
|
|
299
|
+
for (const [a, b] of row) h += `<rect x="${(x0 + a * (W - x0)).toFixed(1)}" y="${y}" width="${Math.max(0.8, (b - a) * (W - x0)).toFixed(1)}" height="${rowH - 1.4}" fill="${hero ? C.accent : C.dark}" opacity="${hero ? 1 : 0.78}"/>`;
|
|
300
|
+
});
|
|
301
|
+
h += `<line x1="${W}" x2="${W}" y1="0" y2="112" stroke="${C.accent}" stroke-width="1"/><text x="${W - 3}" y="114" font-size="6" text-anchor="end" fill="${C.mute}">NOW</text>`;
|
|
302
|
+
gait.innerHTML = h;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// crankshaft dial: the ten throws at their real angles, throw 01 lit
|
|
306
|
+
{
|
|
307
|
+
const cx = 62;
|
|
308
|
+
const cy = 62;
|
|
309
|
+
let h = `<circle cx="${cx}" cy="${cy}" r="54" fill="none" stroke="${C.line}" stroke-width=".8"/><circle cx="${cx}" cy="${cy}" r="8" fill="${C.dark}"/>`;
|
|
310
|
+
for (let i = 0; i < 72; i++) {
|
|
311
|
+
const a = (i / 72) * Math.PI * 2;
|
|
312
|
+
const r1 = i % 6 ? 51 : 47;
|
|
313
|
+
h += `<line x1="${cx + Math.cos(a) * 54}" y1="${cy + Math.sin(a) * 54}" x2="${cx + Math.cos(a) * r1}" y2="${cy + Math.sin(a) * r1}" stroke="${C.mute}" stroke-width=".5"/>`;
|
|
314
|
+
}
|
|
315
|
+
s.throws.forEach((a, i) => {
|
|
316
|
+
const x = cx + Math.cos(-a) * 38;
|
|
317
|
+
const y = cy + Math.sin(-a) * 38;
|
|
318
|
+
const lit = i === 0;
|
|
319
|
+
h += `<line x1="${cx}" y1="${cy}" x2="${x.toFixed(1)}" y2="${y.toFixed(1)}" stroke="${lit ? C.accent : C.dark}" stroke-width="${lit ? 2.2 : 1.1}" opacity="${lit ? 1 : 0.55}"/><circle cx="${x.toFixed(1)}" cy="${y.toFixed(1)}" r="${lit ? 6.5 : 5.5}" fill="${lit ? C.accent : '#f3eee3'}" stroke="${lit ? C.accent : C.dark}" stroke-width=".8"/><text x="${x.toFixed(1)}" y="${(y + 2.3).toFixed(1)}" font-size="6.2" font-weight="700" text-anchor="middle" fill="${lit ? '#f6f1e6' : C.dark}" font-family="JetBrains Mono">${i + 1}</text>`;
|
|
320
|
+
});
|
|
321
|
+
crank.innerHTML = h;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// ride: the foot's lift against the body's height over the last 4 s, on the same scale
|
|
325
|
+
{
|
|
326
|
+
const W = 268;
|
|
327
|
+
const Y = (mm) => 82 - (mm / 300) * 74;
|
|
328
|
+
let pf = '';
|
|
329
|
+
let pb = '';
|
|
330
|
+
s.liftHist.forEach((v, i) => (pf += `${i ? 'L' : 'M'}${((i / (s.liftHist.length - 1)) * W).toFixed(1)} ${Y(v).toFixed(1)}`));
|
|
331
|
+
s.bodyHist.forEach((v, i) => (pb += `${i ? 'L' : 'M'}${((i / (s.bodyHist.length - 1)) * W).toFixed(1)} ${(Y(150) - v * 0.6).toFixed(1)}`));
|
|
332
|
+
ride.innerHTML = `${[0, 100, 200, 300].map((v) => `<line x1="18" x2="${W}" y1="${Y(v)}" y2="${Y(v)}" stroke="${C.faint}" stroke-width=".5" stroke-dasharray="2 3"/><text x="0" y="${Y(v) + 2}" font-size="6" fill="${C.mute}" font-family="JetBrains Mono">${v}</text>`).join('')}<path d="${pf}" fill="none" stroke="${C.accent}" stroke-width="1.5" transform="translate(18 0) scale(${(W - 18) / W} 1)"/><path d="${pb}" fill="none" stroke="${C.ink}" stroke-width="1.5" transform="translate(18 0) scale(${(W - 18) / W} 1)"/><text x="${W}" y="${Y(150) - 5}" font-size="6" text-anchor="end" fill="${C.mute}">BODY LEVEL</text>`;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// views and toggles
|
|
336
|
+
for (const k of VIEW_KEYS) {
|
|
337
|
+
const v = s.viewOn[k] || 0;
|
|
338
|
+
btn[k].style.background = v > 0.5 ? C.dark : 'rgba(243,238,227,.9)';
|
|
339
|
+
btn[k].style.color = v > 0.5 ? '#f3eee3' : C.dark;
|
|
340
|
+
}
|
|
341
|
+
for (const k of TOGGLES) {
|
|
342
|
+
const on = s[k] > 0.5;
|
|
343
|
+
btn[k].style.background = on ? C.accent : 'rgba(243,238,227,.9)';
|
|
344
|
+
btn[k].style.color = on ? '#f6f1e6' : C.dark;
|
|
345
|
+
btn[k].style.borderColor = on ? C.accent : C.line;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// callouts over the beast, and the hero leg's letters
|
|
349
|
+
let ch = '';
|
|
350
|
+
let lh = '';
|
|
351
|
+
for (const c of s.callouts) {
|
|
352
|
+
if (c.o < 0.02) continue;
|
|
353
|
+
const [ax, ay] = c.at;
|
|
354
|
+
const lx = ax + c.dx;
|
|
355
|
+
const ly = ay + c.dy;
|
|
356
|
+
lh += `<g opacity="${c.o.toFixed(2)}"><polyline points="${ax.toFixed(1)},${ay.toFixed(1)} ${lx.toFixed(1)},${ly.toFixed(1)} ${(lx + (c.dx < 0 ? -26 : 26)).toFixed(1)},${ly.toFixed(1)}" fill="none" stroke="${C.dark}" stroke-width=".8"/><circle cx="${ax.toFixed(1)}" cy="${ay.toFixed(1)}" r="2.2" fill="${C.accent}"/></g>`;
|
|
357
|
+
ch += `<div class="call" style="left:${(lx + (c.dx < 0 ? -30 : 30)).toFixed(1)}px;top:${(ly - 8).toFixed(1)}px;opacity:${c.o.toFixed(2)};transform:translateX(${c.dx < 0 ? '-100%' : '0'});text-align:${c.dx < 0 ? 'right' : 'left'}"><b>${c.name}</b><span>${c.sub}</span></div>`;
|
|
358
|
+
}
|
|
359
|
+
for (const d of s.dims) {
|
|
360
|
+
if (d.o < 0.02) continue;
|
|
361
|
+
lh += `<line x1="${d.a[0].toFixed(1)}" y1="${d.a[1].toFixed(1)}" x2="${d.b[0].toFixed(1)}" y2="${d.b[1].toFixed(1)}" stroke="${C.dark}" stroke-width="1" stroke-dasharray="4 3" opacity="${d.o.toFixed(2)}"/>`;
|
|
362
|
+
}
|
|
363
|
+
callSvg.innerHTML = lh;
|
|
364
|
+
callG.innerHTML = ch;
|
|
365
|
+
let th = '';
|
|
366
|
+
for (const g of s.tags) {
|
|
367
|
+
if (g.o < 0.02) continue;
|
|
368
|
+
th += `<div class="tag" style="left:${g.at[0].toFixed(1)}px;top:${g.at[1].toFixed(1)}px;opacity:${g.o.toFixed(2)}"><b style="${g.lit ? `background:${C.accent}` : ''};transform:scale(${(0.7 + 0.3 * Math.min(1, g.o * 1.5)).toFixed(2)})">${g.k}</b>${g.lit ? `<span>${HOLY[g.k].toFixed(1)}</span>` : ''}</div>`;
|
|
369
|
+
}
|
|
370
|
+
tags.innerHTML = th;
|
|
371
|
+
pointer(s.cursor);
|
|
372
|
+
},
|
|
373
|
+
pointer,
|
|
374
|
+
};
|
|
375
|
+
}
|