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.
- package/README.md +9 -1
- package/bin/sera.mjs +31 -0
- package/dist/bundle/chunks/{chunk-LOMPDCMP.js → chunk-DFRGGJWV.js} +1 -1
- package/dist/bundle/chunks/{chunk-AZC5WTED.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-Z2V3PTLI.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/auto-memory.ts +249 -0
- package/sera-core/src/extension.ts +69 -3
- 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 +124 -7
- 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,54 @@
|
|
|
1
|
+
// Generated from jury/scripts/browser.mjs by tests/_gen/build.py; edit there, not here.
|
|
2
|
+
// Resolve a Chromium for Playwright without forcing a download: bundled → any cached build →
|
|
3
|
+
// system Chrome/Edge. Requires `playwright` (or `playwright-core`) resolvable from the project.
|
|
4
|
+
import fs from 'node:fs';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import os from 'node:os';
|
|
7
|
+
import { createRequire } from 'node:module';
|
|
8
|
+
|
|
9
|
+
const req = createRequire(path.join(process.cwd(), 'noop.js'));
|
|
10
|
+
async function loadPlaywright() {
|
|
11
|
+
for (const name of ['playwright', 'playwright-core']) {
|
|
12
|
+
try { return await import(req.resolve(name).replace(/\\/g, '/').replace(/^([A-Za-z]):/, 'file:///$1:')); } catch {}
|
|
13
|
+
try { return await import(name); } catch {}
|
|
14
|
+
}
|
|
15
|
+
console.error('Playwright not found. Run in the project: npm i -D playwright');
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function cachedChromes() {
|
|
20
|
+
const roots = [
|
|
21
|
+
process.env.PLAYWRIGHT_BROWSERS_PATH,
|
|
22
|
+
process.env.LOCALAPPDATA && path.join(process.env.LOCALAPPDATA, 'ms-playwright'),
|
|
23
|
+
path.join(os.homedir(), '.cache', 'ms-playwright'),
|
|
24
|
+
path.join(os.homedir(), 'Library', 'Caches', 'ms-playwright'),
|
|
25
|
+
].filter(Boolean);
|
|
26
|
+
const found = [];
|
|
27
|
+
for (const root of roots) {
|
|
28
|
+
if (!fs.existsSync(root)) continue;
|
|
29
|
+
for (const dir of fs.readdirSync(root).filter((d) => /^chromium-\d+/.test(d)).sort().reverse()) {
|
|
30
|
+
for (const rel of ['chrome-win64/chrome.exe', 'chrome-win/chrome.exe', 'chrome-linux64/chrome', 'chrome-linux/chrome',
|
|
31
|
+
'chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing',
|
|
32
|
+
'chrome-mac/Chromium.app/Contents/MacOS/Chromium']) {
|
|
33
|
+
const p = path.join(root, dir, rel);
|
|
34
|
+
if (fs.existsSync(p)) found.push(p);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return found;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export async function launch() {
|
|
42
|
+
const pw = await loadPlaywright();
|
|
43
|
+
const chromium = pw.chromium || pw.default?.chromium;
|
|
44
|
+
const args = ['--enable-unsafe-swiftshader', '--ignore-gpu-blocklist'];
|
|
45
|
+
try { return await chromium.launch({ args }); } catch {}
|
|
46
|
+
for (const executablePath of cachedChromes()) {
|
|
47
|
+
try { return await chromium.launch({ executablePath, args }); } catch {}
|
|
48
|
+
}
|
|
49
|
+
for (const channel of ['chrome', 'msedge']) {
|
|
50
|
+
try { return await chromium.launch({ channel, args }); } catch {}
|
|
51
|
+
}
|
|
52
|
+
console.error('No Chromium found. Run: npx playwright install chromium');
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Self-host a font (performance + no third-party request): downloads woff2 files and prints
|
|
3
|
+
// @font-face CSS plus <link rel="preload"> tags, or with --next a next/font/local snippet.
|
|
4
|
+
// node font.mjs fontshare <slug> <weights> e.g. fontshare satoshi 400,500,700
|
|
5
|
+
// node font.mjs google "<Family Name>" <weights> e.g. google "Inter Tight" 400,600 (variable: 100..900)
|
|
6
|
+
// axes: google "Instrument Sans" "wdth,wght@75..100,400..700"
|
|
7
|
+
// options: --italic --ext (also latin-ext: Polish, Czech, Turkish...) --dir public/fonts --as "Display"
|
|
8
|
+
// --next write to src/fonts and print a next/font/local block for src/app/fonts.ts
|
|
9
|
+
import fs from 'node:fs';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
|
|
12
|
+
const args = process.argv.slice(2);
|
|
13
|
+
const flags = new Set(args.filter((a) => a === '--italic' || a === '--ext' || a === '--next'));
|
|
14
|
+
const opt = (k, d) => { const i = args.indexOf(`--${k}`); return i > -1 ? args[i + 1] : d; };
|
|
15
|
+
const [provider, family, weights = '400'] = args.filter((a, i) => !a.startsWith('--') && !['--dir', '--as'].includes(args[i - 1]));
|
|
16
|
+
if (!provider || !family) {
|
|
17
|
+
console.error('usage: node font.mjs <fontshare|google> <family> <weights> [--italic] [--as Name] [--dir public/fonts]');
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
const next = flags.has('--next');
|
|
21
|
+
const dir = path.resolve(opt('dir', next ? 'src/fonts' : 'public/fonts'));
|
|
22
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
23
|
+
const UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36';
|
|
24
|
+
|
|
25
|
+
let cssUrl;
|
|
26
|
+
if (provider === 'fontshare') {
|
|
27
|
+
const ws = weights.split(',').flatMap((w) => (flags.has('--italic') ? [w, `${+w + 1}`] : [w])).join(',');
|
|
28
|
+
cssUrl = `https://api.fontshare.com/v2/css?f[]=${family}@${ws}&display=swap`;
|
|
29
|
+
} else if (provider === 'google') {
|
|
30
|
+
// Raw axis spec passes through, e.g. "wdth,wght@75..100,400..700" for a width axis.
|
|
31
|
+
const range = weights.includes('..') ? weights : weights.split(',').join(';');
|
|
32
|
+
const axis = weights.includes('@') ? weights
|
|
33
|
+
: flags.has('--italic') ? `ital,wght@${range.split(';').flatMap((w) => [`0,${w}`, `1,${w}`]).join(';')}` : `wght@${range}`;
|
|
34
|
+
cssUrl = `https://fonts.googleapis.com/css2?family=${encodeURIComponent(family).replace(/%20/g, '+')}:${axis}&display=swap`;
|
|
35
|
+
} else { console.error('provider must be fontshare or google'); process.exit(1); }
|
|
36
|
+
|
|
37
|
+
const res = await fetch(cssUrl, { headers: { 'user-agent': UA } });
|
|
38
|
+
if (!res.ok) { console.error(`font CSS request failed ${res.status}: ${cssUrl}`); process.exit(1); }
|
|
39
|
+
const css = await res.text();
|
|
40
|
+
const blocks = css.match(/@font-face\s*{[^}]+}/g) || [];
|
|
41
|
+
// Google splits by unicode subset; keep latin + latin-ext only.
|
|
42
|
+
const keep = blocks.filter((b, i) => provider !== 'google' || /\/\* latin(-ext)? \*\//.test(css.slice(css.lastIndexOf('/*', css.indexOf(b)), css.indexOf(b))) || !/unicode-range/.test(b));
|
|
43
|
+
const name = opt('as', family.replace(/(^|-)(\w)/g, (_, s, c) => (s ? ' ' : '') + c.toUpperCase()));
|
|
44
|
+
const out = [];
|
|
45
|
+
const preloads = [];
|
|
46
|
+
const local = [];
|
|
47
|
+
const seen = new Set();
|
|
48
|
+
const wanted = new Set(weights.split(','));
|
|
49
|
+
for (const b of keep) {
|
|
50
|
+
const src = (b.match(/url\(['"]?([^'")]+\.woff2)['"]?\)/) || [])[1];
|
|
51
|
+
if (!src) continue;
|
|
52
|
+
const weight = (b.match(/font-weight:\s*([^;]+);/) || [])[1]?.trim() || '400';
|
|
53
|
+
const style = (b.match(/font-style:\s*([^;]+);/) || [])[1]?.trim() || 'normal';
|
|
54
|
+
const range = (b.match(/unicode-range:\s*([^;]+);/) || [])[1]?.trim();
|
|
55
|
+
const stretch = (b.match(/font-stretch:\s*([^;]+);/) || [])[1]?.trim();
|
|
56
|
+
const subset = range && /U\+0100/.test(range) && !/U\+0000/.test(range) ? '-ext' : '';
|
|
57
|
+
if (subset && !flags.has('--ext')) continue;
|
|
58
|
+
if (provider === 'fontshare' && !wanted.has(String(+weight - (style === 'italic' ? 1 : 0))) && !wanted.has(weight)) continue;
|
|
59
|
+
const key = `${weight}|${style}|${subset}`;
|
|
60
|
+
if (seen.has(key)) continue;
|
|
61
|
+
seen.add(key);
|
|
62
|
+
const file = `${name.toLowerCase().replace(/\s+/g, '-')}-${weight.replace(/\s+/g, '_')}-${style}${subset}.woff2`;
|
|
63
|
+
const buf = Buffer.from(await (await fetch(src.startsWith('//') ? `https:${src}` : src, { headers: { 'user-agent': UA } })).arrayBuffer());
|
|
64
|
+
fs.writeFileSync(path.join(dir, file), buf);
|
|
65
|
+
out.push(`@font-face {\n font-family: '${name}';\n src: url('/fonts/${file}') format('woff2');\n font-weight: ${weight};\n font-style: ${style};${stretch ? `\n font-stretch: ${stretch};` : ''}\n font-display: swap;${range ? `\n unicode-range: ${range};` : ''}\n}`);
|
|
66
|
+
const rel = path.relative(path.resolve('src/app'), path.join(dir, file)).split(path.sep).join('/');
|
|
67
|
+
local.push(` { path: '${rel.startsWith('.') ? rel : `./${rel}`}', weight: '${weight}', style: '${style}' },`);
|
|
68
|
+
if (!subset && style === 'normal') preloads.push(`<link rel="preload" href="/fonts/${file}" as="font" type="font/woff2" crossorigin />`);
|
|
69
|
+
console.error(`saved ${file} (${Math.round(buf.length / 1024)} KB)`);
|
|
70
|
+
}
|
|
71
|
+
if (!out.length) { console.error('no woff2 found in provider CSS'); process.exit(1); }
|
|
72
|
+
if (next) {
|
|
73
|
+
const id = name.replace(/[^a-z0-9]+(.)?/gi, (_, c) => (c ? c.toUpperCase() : '')).replace(/^./, (c) => c.toLowerCase());
|
|
74
|
+
const cssVar = `--font-${name.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`;
|
|
75
|
+
console.log(`// src/app/fonts.ts (add ${id}.variable to <html className>, use var(${cssVar}) in CSS)
|
|
76
|
+
import localFont from 'next/font/local';
|
|
77
|
+
export const ${id} = localFont({
|
|
78
|
+
src: [
|
|
79
|
+
${local.join('\n')}
|
|
80
|
+
],
|
|
81
|
+
variable: '${cssVar}',
|
|
82
|
+
display: 'swap',
|
|
83
|
+
});`);
|
|
84
|
+
process.exit(0);
|
|
85
|
+
}
|
|
86
|
+
console.log(`/* ${family} (${provider}) */\n${out.join('\n')}`);
|
|
87
|
+
console.log(`\n<!-- preload in the layout <head> (only fonts used above the fold) -->\n${[...new Set(preloads)].slice(0, 2).join('\n')}`);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Render a 1200x630 Open Graph image from the live hero (after the loader), into public/og.png.
|
|
3
|
+
// node og.mjs <url> [--out public/og.png] [--wait 4500]
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { launch } from './browser.mjs';
|
|
6
|
+
|
|
7
|
+
const args = process.argv.slice(2);
|
|
8
|
+
const url = args.find((a) => !a.startsWith('--'));
|
|
9
|
+
const opt = (k, d) => { const i = args.indexOf(`--${k}`); return i > -1 ? args[i + 1] : d; };
|
|
10
|
+
if (!url) { console.error('usage: node og.mjs <url> [--out public/og.png]'); process.exit(1); }
|
|
11
|
+
const out = path.resolve(opt('out', 'public/og.png'));
|
|
12
|
+
const browser = await launch();
|
|
13
|
+
const page = await (await browser.newContext({ viewport: { width: 1200, height: 630 }, deviceScaleFactor: 1 })).newPage();
|
|
14
|
+
await page.goto(url, { waitUntil: 'load' });
|
|
15
|
+
await page.waitForFunction(() => { const l = document.getElementById('loader'); return !l || l.hidden || getComputedStyle(l).display === 'none'; }, null, { timeout: 9000 }).catch(() => {});
|
|
16
|
+
await page.waitForTimeout(+opt('wait', '2500'));
|
|
17
|
+
await page.evaluate(() => document.getElementById('cursor')?.remove());
|
|
18
|
+
await page.screenshot({ path: out });
|
|
19
|
+
await browser.close();
|
|
20
|
+
console.log(`wrote ${out}`);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Curate free-license placeholder photos (Unsplash photos served by Lorem Picsum) when the brief
|
|
3
|
+
// needs imagery and none was provided. Always mark them as placeholders and credit the authors.
|
|
4
|
+
// node photos.mjs sheet [--out .photos] contact sheets of ~1000 photos with ids (read the PNGs)
|
|
5
|
+
// node photos.mjs get <id> <id> ... [--dir public/photos] [--size 1600x1067]
|
|
6
|
+
// downloads JPGs + credits.json (author, source url)
|
|
7
|
+
import fs from 'node:fs';
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
|
|
10
|
+
const args = process.argv.slice(2);
|
|
11
|
+
const cmd = args[0];
|
|
12
|
+
const opt = (k, d) => { const i = args.indexOf(`--${k}`); return i > -1 ? args[i + 1] : d; };
|
|
13
|
+
const ids = args.slice(1).filter((a, i, all) => !a.startsWith('--') && !['--out', '--dir', '--size'].includes(all[i - 1]));
|
|
14
|
+
|
|
15
|
+
async function list() {
|
|
16
|
+
let all = [];
|
|
17
|
+
for (let p = 1; p <= 11; p++) {
|
|
18
|
+
const r = await fetch(`https://picsum.photos/v2/list?page=${p}&limit=100`);
|
|
19
|
+
if (!r.ok) break;
|
|
20
|
+
const page = await r.json();
|
|
21
|
+
if (!page.length) break;
|
|
22
|
+
all = all.concat(page);
|
|
23
|
+
}
|
|
24
|
+
return all;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (cmd === 'sheet') {
|
|
28
|
+
const out = path.resolve(opt('out', '.photos'));
|
|
29
|
+
fs.mkdirSync(out, { recursive: true });
|
|
30
|
+
const all = await list();
|
|
31
|
+
fs.writeFileSync(path.join(out, 'list.json'), JSON.stringify(all, null, 1));
|
|
32
|
+
const { launch } = await import('./browser.mjs');
|
|
33
|
+
const browser = await launch();
|
|
34
|
+
const page = await browser.newPage({ viewport: { width: 1600, height: 1000 } });
|
|
35
|
+
const per = 192;
|
|
36
|
+
for (let i = 0; i * per < all.length; i++) {
|
|
37
|
+
const chunk = all.slice(i * per, (i + 1) * per);
|
|
38
|
+
await page.setContent(`<body style="margin:0;background:#222;display:grid;grid-template-columns:repeat(16,1fr);gap:3px;font:bold 13px sans-serif;color:#ff0">${chunk
|
|
39
|
+
.map((a) => `<div style="position:relative"><img src="https://picsum.photos/id/${a.id}/200/134" style="width:100%;display:block"><span style="position:absolute;left:2px;top:1px;background:#000;padding:0 3px">${a.id}</span></div>`)
|
|
40
|
+
.join('')}</body>`, { waitUntil: 'networkidle' });
|
|
41
|
+
const file = path.join(out, `sheet-${i}.png`);
|
|
42
|
+
await page.screenshot({ path: file, fullPage: true });
|
|
43
|
+
console.log(`wrote ${file}`);
|
|
44
|
+
}
|
|
45
|
+
await browser.close();
|
|
46
|
+
console.log('Read the sheets, pick ids that fit the art direction (one coherent eye), then: node photos.mjs get <ids>');
|
|
47
|
+
} else if (cmd === 'get' && ids.length) {
|
|
48
|
+
const dir = path.resolve(opt('dir', 'public/photos'));
|
|
49
|
+
const [w, h] = opt('size', '1600x1067').split('x');
|
|
50
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
51
|
+
const credits = [];
|
|
52
|
+
for (const id of ids) {
|
|
53
|
+
const info = await (await fetch(`https://picsum.photos/id/${id}/info`)).json();
|
|
54
|
+
const img = await fetch(`https://picsum.photos/id/${id}/${w}/${h}`);
|
|
55
|
+
if (!img.ok) { console.error(`failed ${id}`); continue; }
|
|
56
|
+
fs.writeFileSync(path.join(dir, `${id}.jpg`), Buffer.from(await img.arrayBuffer()));
|
|
57
|
+
credits.push({ id, file: `${id}.jpg`, author: info.author, source: info.url, license: 'Unsplash License', placeholder: true });
|
|
58
|
+
console.log(`saved ${id}.jpg by ${info.author}`);
|
|
59
|
+
}
|
|
60
|
+
fs.writeFileSync(path.join(dir, 'credits.json'), JSON.stringify(credits, null, 2));
|
|
61
|
+
console.log(`credits → ${path.join(dir, 'credits.json')} (credit them in a colophon; flag for replacement)`);
|
|
62
|
+
} else {
|
|
63
|
+
console.error('usage: node photos.mjs sheet [--out .photos] | node photos.mjs get <id...> [--dir public/photos] [--size 1600x1067]');
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Generated from jury/scripts/serve.mjs by tests/_gen/build.py; edit there, not here.
|
|
3
|
+
// Zero-dependency static server for a built site (clean URLs, 404.html, correct MIME types).
|
|
4
|
+
// For static output folders (Astro dist/, Next `output: 'export'` out/, Vite dist/).
|
|
5
|
+
// node serve.mjs [dist] [--port 4400]
|
|
6
|
+
import http from 'node:http';
|
|
7
|
+
import fs from 'node:fs';
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
|
|
11
|
+
const types = {
|
|
12
|
+
'.html': 'text/html; charset=utf-8', '.js': 'text/javascript', '.mjs': 'text/javascript', '.css': 'text/css',
|
|
13
|
+
'.json': 'application/json', '.svg': 'image/svg+xml', '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg',
|
|
14
|
+
'.webp': 'image/webp', '.avif': 'image/avif', '.gif': 'image/gif', '.ico': 'image/x-icon', '.woff2': 'font/woff2',
|
|
15
|
+
'.woff': 'font/woff', '.ttf': 'font/ttf', '.mp4': 'video/mp4', '.webm': 'video/webm', '.xml': 'application/xml',
|
|
16
|
+
'.txt': 'text/plain', '.glb': 'model/gltf-binary', '.mp3': 'audio/mpeg',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** Serve `dir` on 127.0.0.1:`port` (0 = any free port). Resolves to the http.Server. */
|
|
20
|
+
export function serve(dir, port = 4400) {
|
|
21
|
+
const root = path.resolve(dir);
|
|
22
|
+
const resolve = (p) => {
|
|
23
|
+
const clean = path.normalize(decodeURIComponent(p.split('?')[0])).replace(/^([/\\])+/, '');
|
|
24
|
+
const base = path.join(root, clean);
|
|
25
|
+
if (!base.startsWith(root)) return null;
|
|
26
|
+
for (const c of [base, path.join(base, 'index.html'), base + '.html']) {
|
|
27
|
+
try { if (fs.statSync(c).isFile()) return c; } catch {}
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
const server = http.createServer((req, res) => {
|
|
32
|
+
const file = resolve(req.url || '/');
|
|
33
|
+
const f = file || path.join(root, '404.html');
|
|
34
|
+
if (!fs.existsSync(f)) { res.writeHead(404); return res.end('Not found'); }
|
|
35
|
+
res.writeHead(file ? 200 : 404, { 'content-type': types[path.extname(f)] || 'application/octet-stream', 'cache-control': 'no-cache' });
|
|
36
|
+
fs.createReadStream(f).pipe(res);
|
|
37
|
+
});
|
|
38
|
+
return new Promise((ok) => server.listen(port, '127.0.0.1', () => ok(server)));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
42
|
+
const args = process.argv.slice(2);
|
|
43
|
+
const dir = args.find((a, i) => !a.startsWith('--') && args[i - 1] !== '--port') || 'dist';
|
|
44
|
+
const pi = args.indexOf('--port');
|
|
45
|
+
if (!fs.existsSync(dir)) { console.error(`No folder ${path.resolve(dir)}. Build first.`); process.exit(1); }
|
|
46
|
+
const server = await serve(dir, pi > -1 ? +args[pi + 1] : 4400);
|
|
47
|
+
console.log(`serving ${path.resolve(dir)} at http://127.0.0.1:${server.address().port}/`);
|
|
48
|
+
}
|