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,197 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { existsSync, mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
5
|
+
|
|
6
|
+
const usage = "usage: node snapshot.mjs <url or local file> <out.html> [pass label] [--dark | --light] [--width 1440] [--height 810]";
|
|
7
|
+
const args = process.argv.slice(2);
|
|
8
|
+
const positionals = [];
|
|
9
|
+
let width = 1440;
|
|
10
|
+
let height = 810;
|
|
11
|
+
const size = (name, value) => {
|
|
12
|
+
const n = Number(value);
|
|
13
|
+
if (!Number.isInteger(n) || n <= 0) {
|
|
14
|
+
console.error(`--${name} must be a whole number above 0, got "${value}"`);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
return n;
|
|
18
|
+
};
|
|
19
|
+
for (let i = 0; i < args.length; i++) {
|
|
20
|
+
const arg = args[i];
|
|
21
|
+
const match = /^--(width|height)(?:=(.*))?$/.exec(arg);
|
|
22
|
+
if (match) {
|
|
23
|
+
const value = match[2] ?? args[++i];
|
|
24
|
+
if (value === undefined || value.startsWith("--")) {
|
|
25
|
+
console.error(`--${match[1]} needs a value, like --${match[1]} 1440`);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
if (match[1] === "width") width = size("width", value);
|
|
29
|
+
else height = size("height", value);
|
|
30
|
+
} else if (!arg.startsWith("--")) {
|
|
31
|
+
positionals.push(arg);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const [url, out, label] = positionals;
|
|
35
|
+
const scheme = args.includes("--dark") ? "dark" : args.includes("--light") ? "light" : "no-preference";
|
|
36
|
+
if (!url || !out) {
|
|
37
|
+
console.error(usage);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
// A path on disk is a page too: a bare file path is not a URL, and
|
|
41
|
+
// Playwright rejects it with a protocol error, so turn it into one.
|
|
42
|
+
const target = statSync(url, { throwIfNoEntry: false })?.isFile() ? pathToFileURL(resolve(url)).href : url;
|
|
43
|
+
|
|
44
|
+
async function browserKit() {
|
|
45
|
+
for (const name of ["playwright", "playwright-core"]) {
|
|
46
|
+
try {
|
|
47
|
+
return await import(name);
|
|
48
|
+
} catch {}
|
|
49
|
+
try {
|
|
50
|
+
return createRequire(join(process.cwd(), "package.json"))(name);
|
|
51
|
+
} catch {}
|
|
52
|
+
}
|
|
53
|
+
console.error("Playwright is not installed. In your project, run `npm install -D playwright` followed by `npx playwright install chromium`.");
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const chrome = [process.env.CHROME_PATH, "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "/usr/bin/google-chrome", "/usr/bin/chromium"].find((path) => path && existsSync(path));
|
|
58
|
+
const { chromium } = await browserKit();
|
|
59
|
+
const browser = await chromium.launch(chrome ? { executablePath: chrome } : {});
|
|
60
|
+
try {
|
|
61
|
+
const page = await browser.newPage({ viewport: { width: Number(width), height: Number(height) }, colorScheme: scheme });
|
|
62
|
+
await page.goto(target, { waitUntil: "networkidle" });
|
|
63
|
+
await page.evaluate(() => document.fonts.ready);
|
|
64
|
+
await page.waitForTimeout(600);
|
|
65
|
+
await page.evaluate(async () => {
|
|
66
|
+
const pause = (ms) => new Promise((done) => setTimeout(done, ms));
|
|
67
|
+
const root = document.scrollingElement || document.documentElement;
|
|
68
|
+
let last = root.scrollHeight;
|
|
69
|
+
for (let step = 0; step < 30 && root.scrollTop < 20_000; step++) {
|
|
70
|
+
window.scrollBy(0, window.innerHeight);
|
|
71
|
+
await pause(150);
|
|
72
|
+
const grown = root.scrollHeight;
|
|
73
|
+
if (grown <= last && root.scrollTop + window.innerHeight >= grown) break;
|
|
74
|
+
last = grown;
|
|
75
|
+
}
|
|
76
|
+
window.scrollTo(0, 0);
|
|
77
|
+
const loaded = (image) =>
|
|
78
|
+
new Promise((done) => {
|
|
79
|
+
image.addEventListener("load", done, { once: true });
|
|
80
|
+
image.addEventListener("error", done, { once: true });
|
|
81
|
+
});
|
|
82
|
+
const pending = [...document.images].filter((image) => !image.complete);
|
|
83
|
+
await Promise.race([Promise.all(pending.map(loaded)), pause(5000)]);
|
|
84
|
+
});
|
|
85
|
+
const html = await page.evaluate(async ([label, scheme]) => {
|
|
86
|
+
const LIMIT = 3_000_000;
|
|
87
|
+
const absolute = (value, base = location.href) => {
|
|
88
|
+
try {
|
|
89
|
+
return new URL(value, base).href;
|
|
90
|
+
} catch {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const inlined = new Map();
|
|
95
|
+
const inline = async (href) => {
|
|
96
|
+
if (!href || href.startsWith("data:")) return href;
|
|
97
|
+
if (!inlined.has(href)) {
|
|
98
|
+
inlined.set(
|
|
99
|
+
href,
|
|
100
|
+
fetch(href)
|
|
101
|
+
.then((response) => (response.ok ? response.blob() : null))
|
|
102
|
+
.then((blob) =>
|
|
103
|
+
blob && blob.size < LIMIT
|
|
104
|
+
? new Promise((done) => {
|
|
105
|
+
const reader = new FileReader();
|
|
106
|
+
reader.onload = () => done(reader.result);
|
|
107
|
+
reader.readAsDataURL(blob);
|
|
108
|
+
})
|
|
109
|
+
: href,
|
|
110
|
+
)
|
|
111
|
+
.catch(() => href),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
return inlined.get(href);
|
|
115
|
+
};
|
|
116
|
+
const urls = async (css, base) => {
|
|
117
|
+
const found = [...css.matchAll(/url\((['"]?)(?!data:)([^)'"]+)\1\)/g)];
|
|
118
|
+
let result = css;
|
|
119
|
+
for (const [whole, , value] of found) {
|
|
120
|
+
if (/^(#|%23)/.test(value.trim())) continue;
|
|
121
|
+
const data = await inline(absolute(value.trim(), base));
|
|
122
|
+
result = result.split(whole).join(`url("${data}")`);
|
|
123
|
+
}
|
|
124
|
+
return result;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const css = [];
|
|
128
|
+
for (const sheet of document.styleSheets) {
|
|
129
|
+
const owner = sheet.ownerNode;
|
|
130
|
+
let text = "";
|
|
131
|
+
let base = location.href;
|
|
132
|
+
if (sheet.href) {
|
|
133
|
+
base = sheet.href;
|
|
134
|
+
text = await fetch(sheet.href).then((response) => (response.ok ? response.text() : "")).catch(() => "");
|
|
135
|
+
} else if (owner && owner.textContent.trim()) {
|
|
136
|
+
text = owner.textContent;
|
|
137
|
+
}
|
|
138
|
+
if (!text) {
|
|
139
|
+
try {
|
|
140
|
+
text = [...sheet.cssRules].map((rule) => rule.cssText).join("\n");
|
|
141
|
+
} catch {}
|
|
142
|
+
}
|
|
143
|
+
const media = sheet.media && sheet.media.mediaText;
|
|
144
|
+
css.push(media && media !== "all" ? `@media ${media} {\n${text}\n}` : text);
|
|
145
|
+
css[css.length - 1] = await urls(css[css.length - 1], base);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const copy = document.documentElement.cloneNode(true);
|
|
149
|
+
// Freeze the browser's selected image before removing responsive markup.
|
|
150
|
+
const images = document.querySelectorAll("img");
|
|
151
|
+
copy.querySelectorAll("img").forEach((node, index) => {
|
|
152
|
+
const selected = images[index].currentSrc;
|
|
153
|
+
if (selected) node.setAttribute("src", selected);
|
|
154
|
+
});
|
|
155
|
+
copy.querySelectorAll("script, noscript, link[rel='stylesheet'], link[rel='preload'], link[rel='modulepreload'], style").forEach((node) => node.remove());
|
|
156
|
+
copy.querySelectorAll("[srcset]").forEach((node) => node.removeAttribute("srcset"));
|
|
157
|
+
copy.querySelectorAll("source").forEach((node) => node.remove());
|
|
158
|
+
copy.querySelectorAll("[loading]").forEach((node) => node.removeAttribute("loading"));
|
|
159
|
+
for (const node of copy.querySelectorAll("img[src], video[poster], image")) {
|
|
160
|
+
const attr = node.tagName === "VIDEO" ? "poster" : node.tagName.toLowerCase() === "image" ? "href" : "src";
|
|
161
|
+
const value = node.getAttribute(attr);
|
|
162
|
+
if (value) node.setAttribute(attr, await inline(absolute(value)));
|
|
163
|
+
}
|
|
164
|
+
copy.querySelectorAll("a[href]").forEach((node) => node.setAttribute("href", absolute(node.getAttribute("href"))));
|
|
165
|
+
for (const node of copy.querySelectorAll("[style*='url(']")) {
|
|
166
|
+
node.setAttribute("style", await urls(node.getAttribute("style"), location.href));
|
|
167
|
+
}
|
|
168
|
+
const style = document.createElement("style");
|
|
169
|
+
let text = css.join("\n");
|
|
170
|
+
if (scheme === "dark" || scheme === "light") {
|
|
171
|
+
const other = scheme === "dark" ? "light" : "dark";
|
|
172
|
+
text = text
|
|
173
|
+
.replace(new RegExp(`prefers-color-scheme\\s*:\\s*${scheme}`, "g"), "min-width: 0px")
|
|
174
|
+
.replace(new RegExp(`prefers-color-scheme\\s*:\\s*${other}`, "g"), "max-width: 0px");
|
|
175
|
+
const meta = document.createElement("meta");
|
|
176
|
+
meta.name = "color-scheme";
|
|
177
|
+
meta.content = scheme;
|
|
178
|
+
copy.querySelector("head").prepend(meta);
|
|
179
|
+
}
|
|
180
|
+
style.textContent = text;
|
|
181
|
+
copy.querySelector("head").appendChild(style);
|
|
182
|
+
if (label) {
|
|
183
|
+
const meta = document.createElement("meta");
|
|
184
|
+
meta.name = "unslop-pass";
|
|
185
|
+
meta.content = label;
|
|
186
|
+
copy.querySelector("head").prepend(meta);
|
|
187
|
+
}
|
|
188
|
+
return "<!doctype html>\n" + copy.outerHTML;
|
|
189
|
+
}, [label ?? "", scheme]);
|
|
190
|
+
mkdirSync(dirname(resolve(out)), { recursive: true });
|
|
191
|
+
writeFileSync(resolve(out), html);
|
|
192
|
+
await page.evaluate(() => window.scrollTo(0, 0));
|
|
193
|
+
await page.screenshot({ path: resolve(out).replace(/\.html?$/, "") + ".live.png" });
|
|
194
|
+
console.log(`saved ${resolve(out)}${label ? ` as ${label}` : ""}`);
|
|
195
|
+
} finally {
|
|
196
|
+
await browser.close();
|
|
197
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: uretken-sanat
|
|
3
|
+
description: Kullanıcı kodla üretilen sanat, algoritmik/jeneratif sanat, akış alanı, parçacık sistemi, fraktal, noise deseni, "her seferinde farklı çıkan desen", p5.js/canvas çizimi istediğinde kullan. Tohumlu rastgelelik, ayarlanabilir parametreler, tek HTML dosyası; var olan sanatçıyı kopyalamaz.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Sera üretken (algoritmik) sanat becerisi
|
|
7
|
+
|
|
8
|
+
Kullanıcı teknik değil. "Çizimi hazırladım, açtım. Düğmeye basınca yeni bir desen çıkıyor; beğendiğiniz olursa kaydedin" yeterli.
|
|
9
|
+
|
|
10
|
+
Üretken sanat = bir **süreç** tasarlarsın, tek bir resim değil. Güzellik sürecin içinden çıkar. Sonuç, "tek tıkla yapılmış filtre" değil, emekle işlenmiş bir eser gibi görünmeli.
|
|
11
|
+
|
|
12
|
+
## 1. Önce kısa bir "estetik fikir" (4-6 cümle)
|
|
13
|
+
Koda başlamadan kendi cümlelerinle bir yön yaz ve kullanıcıya 2 satırda söyle:
|
|
14
|
+
- **Ad (1-2 kelime):** "Sakin Türbülans", "Kristal Büyüme".
|
|
15
|
+
- **Hangi doğa/matematik süreci?** (akış alanı, parçacık çekimi, reaksiyon-difüzyon, L-sistem, dalga girişimi, Voronoi, çember paketleme, çekici/attractor…)
|
|
16
|
+
- **Hareket/zaman var mı?** (zamanla büyür, sabit kare çizilir, etkileşimli)
|
|
17
|
+
- **Renk dünyası:** 3-5 renkli palet; renk hız/yoğunluk/açı gibi süreçten türesin, rastgele serpilmesin.
|
|
18
|
+
Mevcut bir sanatçının eserini ya da stilini birebir taklit etme; ilhamı sürece çevir, özgün yap.
|
|
19
|
+
|
|
20
|
+
## 2. Teknik iskelet (tek `.html`, çevrimdışı çalışır)
|
|
21
|
+
- Dosya tek parça; p5.js istenirse sürümü sabitle (cdnjs'te açık sürüm) ya da çevrimdışı için saf Canvas 2D kullan. Çoğu iş saf Canvas ile yapılır ve bağımlılık gerektirmez.
|
|
22
|
+
- **Tohumlu rastgelelik:** `Math.random` yerine tohumlu bir üreteç (mulberry32 gibi) kullan. Aynı tohum = aynı eser. Tohumu ekranda göster, "yeni tohum" ve "bu tohumu kaydet/kopyala" düğmeleri koy. Gürültü (noise) için kendi küçük Perlin/simplex gerçeklemeni yaz ya da p5'in `noiseSeed`'ini aynı tohuma bağla.
|
|
23
|
+
- **Parametreler:** 4-8 anlamlı ayar (parçacık sayısı, gürültü ölçeği, hız, iz uzunluğu, palet). Kaydırıcılarla canlı değişsin; her değişimde çizim yeniden başlasın. Parametre adları Türkçe ve anlaşılır.
|
|
24
|
+
- **Çizim:** her şeyi sabit kodlanmış şekillerle değil, süreçle üret ("%90 algoritma, %10 ayar"). İz bırakmak için yarı saydam zemin boyama; yoğunluk için alfa birikimi.
|
|
25
|
+
- **Performans:** parçacık sayısı sınırlı (örn. ≤ 4000), `requestAnimationFrame`, sekme gizlenince dur, `devicePixelRatio` en çok 2. Telefonda akıcı kalsın.
|
|
26
|
+
- **Dışa aktar:** "PNG indir" düğmesi (`canvas.toBlob`), dosya adında tohum olsun. Zamanlı eserde "duraklat/devam".
|
|
27
|
+
- **Erişilebilirlik:** `prefers-reduced-motion` açıksa animasyonu durdur, tek bir sabit kare çiz. Düğmeler klavyeyle ulaşılır, odak halkası görünür.
|
|
28
|
+
- Sayfa arka planı eserle uyumlu, kontrol paneli küçük ve eserin altında ya da kenarda; eser odak noktası.
|
|
29
|
+
|
|
30
|
+
## 3. Kalite çıtası
|
|
31
|
+
- İlk kare kötü görünüyorsa gönderme: farklı 5 tohumla çalıştır, ekran görüntülerine bak; çoğu tohum güzel değilse parametre aralığını daralt.
|
|
32
|
+
- Ölçek ve boşluk: kompozisyon tuvale dengeli yayılsın; kenarlarda anlamsız kırpılma yok.
|
|
33
|
+
- Renk: 3-5 renk, kontrast net; "gökkuşağı" varsayılanı yok.
|
|
34
|
+
- Her parametre uç değerinde bozulmasın (sıfır, en büyük).
|
|
35
|
+
|
|
36
|
+
## 4. Doğrula
|
|
37
|
+
1. Dosyayı aç, ekran görüntüsü al, gerçekten bak (boş tuval, tek renk, donma var mı?).
|
|
38
|
+
2. Aynı tohumla iki kez aç: aynı sonuç mu? Farklı tohum: farklı mı?
|
|
39
|
+
3. Dar ekran (390 px) ve geniş ekranda bak; konsolda hata yok.
|
|
40
|
+
4. Kanıtsız "hazır" deme: dosya yolu + neye baktığın.
|
|
41
|
+
|
|
42
|
+
Hareketli site/animasyon için `animasyonlu-site`, oyun için `oyun-yarat`, poster/afiş için `sera-tasarim` kullan.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verification-before-completion
|
|
3
|
+
description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verification Before Completion
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
**Core principle:** Evidence before claims, always.
|
|
11
|
+
|
|
12
|
+
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
13
|
+
|
|
14
|
+
## The Iron Law
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If you haven't run the verification command in this message, you cannot claim it passes.
|
|
21
|
+
|
|
22
|
+
## The Gate Function
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
BEFORE claiming any status or expressing satisfaction:
|
|
26
|
+
|
|
27
|
+
1. IDENTIFY: What command proves this claim?
|
|
28
|
+
2. RUN: Execute the FULL command (fresh, complete)
|
|
29
|
+
3. READ: Full output, check exit code, count failures
|
|
30
|
+
4. VERIFY: Does output confirm the claim?
|
|
31
|
+
- If NO: State actual status with evidence
|
|
32
|
+
- If YES: State claim WITH evidence
|
|
33
|
+
5. ONLY THEN: Make the claim
|
|
34
|
+
|
|
35
|
+
Skip any step = lying, not verifying
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Common Failures
|
|
39
|
+
|
|
40
|
+
| Claim | Requires | Not Sufficient |
|
|
41
|
+
|-------|----------|----------------|
|
|
42
|
+
| Tests pass | Test command output: 0 failures | Previous run, "should pass" |
|
|
43
|
+
| Linter clean | Linter output: 0 errors | Partial check, extrapolation |
|
|
44
|
+
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
|
|
45
|
+
| Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
|
|
46
|
+
| Regression test works | Red-green cycle verified | Test passes once |
|
|
47
|
+
| Agent completed | VCS diff shows changes | Agent reports "success" |
|
|
48
|
+
| Requirements met | Line-by-line checklist | Tests passing |
|
|
49
|
+
|
|
50
|
+
## Red Flags - STOP
|
|
51
|
+
|
|
52
|
+
- Using "should", "probably", "seems to"
|
|
53
|
+
- Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
|
|
54
|
+
- About to commit/push/PR without verification
|
|
55
|
+
- Trusting agent success reports
|
|
56
|
+
- Relying on partial verification
|
|
57
|
+
- Thinking "just this once"
|
|
58
|
+
- Tired and wanting work over
|
|
59
|
+
- **ANY wording implying success without having run verification**
|
|
60
|
+
|
|
61
|
+
## Rationalization Prevention
|
|
62
|
+
|
|
63
|
+
| Excuse | Reality |
|
|
64
|
+
|--------|---------|
|
|
65
|
+
| "Should work now" | RUN the verification |
|
|
66
|
+
| "I'm confident" | Confidence ≠ evidence |
|
|
67
|
+
| "Just this once" | No exceptions |
|
|
68
|
+
| "Linter passed" | Linter ≠ compiler |
|
|
69
|
+
| "Agent said success" | Verify independently |
|
|
70
|
+
| "I'm tired" | Exhaustion ≠ excuse |
|
|
71
|
+
| "Partial check is enough" | Partial proves nothing |
|
|
72
|
+
| "Different words so rule doesn't apply" | Spirit over letter |
|
|
73
|
+
|
|
74
|
+
## Key Patterns
|
|
75
|
+
|
|
76
|
+
**Tests:**
|
|
77
|
+
```
|
|
78
|
+
✅ [Run test command] [See: 34/34 pass] "All tests pass"
|
|
79
|
+
❌ "Should pass now" / "Looks correct"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Regression tests (TDD Red-Green):**
|
|
83
|
+
```
|
|
84
|
+
✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
|
|
85
|
+
❌ "I've written a regression test" (without red-green verification)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Build:**
|
|
89
|
+
```
|
|
90
|
+
✅ [Run build] [See: exit 0] "Build passes"
|
|
91
|
+
❌ "Linter passed" (linter doesn't check compilation)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Requirements:**
|
|
95
|
+
```
|
|
96
|
+
✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
|
|
97
|
+
❌ "Tests pass, phase complete"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Agent delegation:**
|
|
101
|
+
```
|
|
102
|
+
✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
|
|
103
|
+
❌ Trust agent report
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## When To Apply
|
|
107
|
+
|
|
108
|
+
**ALWAYS before:**
|
|
109
|
+
- ANY variation of success/completion claims
|
|
110
|
+
- ANY expression of satisfaction
|
|
111
|
+
- ANY positive statement about work state
|
|
112
|
+
- Committing, PR creation, task completion
|
|
113
|
+
- Moving to next task
|
|
114
|
+
- Delegating to agents
|
|
115
|
+
|
|
116
|
+
**Rule applies to:**
|
|
117
|
+
- Exact phrases
|
|
118
|
+
- Paraphrases and synonyms
|
|
119
|
+
- Implications of success
|
|
120
|
+
- ANY communication suggesting completion/correctness
|
|
@@ -103,6 +103,9 @@ document.getElementById("cerez-red").onclick=function(){cerezSec("hayir")};
|
|
|
103
103
|
|
|
104
104
|
**20 HTTPS + kendi domain** — yayın aşamasında: HTTP→HTTPS yönlendirme, `www`↔kök tek yönlendirme, canonical/og/sitemap URL'lerini gerçek `https://` alan adına eşitle, karışık içerik (http kaynak) yok. Alan adı yoksa ürün düzeyinde tek cümle: "Kendi alan adınla yayınlayalım mı?"
|
|
105
105
|
|
|
106
|
+
## Site kalitesi (ajans düzeyi)
|
|
107
|
+
Site yaparken ayrıca uygula: açılış (ad + semt + tek eylem) → hizmet/fiyat (süre + TL) → ekip → mekân → yorumlar (ad + semt) → SSS → iletişim + saatler; 3 yazı rolü (başlık + el yazısı vurgu + gövde); sektöre özgü tek imza dekor (SVG/CSS); çalışma saatinden canlı "Şu an açık" rozeti; yerel/somut dil, klişe slogan yok; randevuda toplam süre+tutar canlı, dolu saat seçilemez, sonuç WhatsApp/tel bağlantısı. Hareket ölçülü: TEK düzenlenmiş an (açılış sekansı ya da tek imza efekt: canlı degrade arka plan / kayan yazı şeridi / mıknatıs düğme); her bölüme aynı belirme koyma; Lenis yumuşak kaydırma; yalnız transform/opacity, prefers-reduced-motion'da kapalı. Yapay zekâ izlerinden kaçın: krem+serif+kiremit kalıbı, başlıkta tek kelime vurgusu, BÜYÜK HARF üst etiketler, 'A · B' dizileri, '→' ekli düğmeler, her yerde aynı kart+gölge. Önce 4-6 renklik plan yap, 'her sitede çıkar mı' diye sorgula. Simgeler SVG, emoji yok. Çok adımlı akışta her adımın seçenek listesi dolu mu kontrol et.
|
|
108
|
+
|
|
106
109
|
## Kendi kendini denetle (teslimden hemen önce)
|
|
107
110
|
Eksik kalan maddeyi şimdi tamamla, sonra özet ver:
|
|
108
111
|
1. `404.html`, `tesekkurler.html`, `gizlilik.html`, `kosullar.html`, `robots.txt`, `sitemap.xml`, `favicon.svg`, `og.svg`, `site.webmanifest` var mı?
|
|
@@ -22,10 +22,10 @@ export const USTA_RULES = [
|
|
|
22
22
|
"4. KALDI ise hatayı oku, kendin düzelt, tekrar app_verify (en çok 4 tur). Aynı hatayı aynı şekilde tekrar deneme; yaklaşımı değiştir.",
|
|
23
23
|
"5. GEÇTİ olmadan teslim yok. Doğrulanamadıysa (ATLANDI/4 tur) bunu açıkça söyle; 'çalışıyor' deme.",
|
|
24
24
|
"6. Tarayıcıda açmak için (yukarıdaki `start`/`open` komutu yerine) bash DEĞİL open_app kullan (yolu kendisi çözer, beklemez). Teslimden önce open_app ile kullanıcıya aç.",
|
|
25
|
-
"7.
|
|
25
|
+
"7. İstek genelse ('oyun yap'; tür/konu yok) yazmadan önce question ile bir kez ≤4 seçenekli soru sor (tür, kim için, olmazsa olmaz, tarz; 'sen seç' seçeneği). Rutin şeyleri (renk, düzen, isim, kütüphane) sorma, makul varsayımla seç.",
|
|
26
26
|
"8. Hata/test kırığı durma sebebi değil: düzelt ve doğrula. Bitirmeden bırakma.",
|
|
27
27
|
"8b. GÖRSEL KALİTE (arayüzlü işlerde): tarifteki yazı tiplerini/renkleri AYNEN kullan (Google Fonts bağlantısı); proje klasöründeki logo/görselleri (assets/, img/) bul ve kullan; ikon için emoji DEĞİL tutarlı satır-içi SVG ikon seti; 4/8 px boşluk ölçeği, net başlık hiyerarşisi, tek vurgu rengi; mobil önce (390 px) — taşma/üst üste binme yok. app_verify ekindeki ekran görüntüsüne bakıp en az bir tasarım düzeltme turu yap.",
|
|
28
|
-
"9. Teslim mesajı
|
|
28
|
+
"9. Teslim mesajı ÖĞRETMEN TESLİMİ biçiminde + kanıt (örn. 'Kontrol ettim: hata yok, telefonda da düzgün görünüyor'). Kod gösterme.",
|
|
29
29
|
].join("\n");
|
|
30
30
|
|
|
31
31
|
/** Durum: yalniz ust ajan, tek oturum; her yeni kullanici isteginde sifirlanir. */
|
|
@@ -13,6 +13,7 @@ import net from "node:net";
|
|
|
13
13
|
import { tmpdir } from "node:os";
|
|
14
14
|
import { join, resolve } from "node:path";
|
|
15
15
|
import { pathToFileURL } from "node:url";
|
|
16
|
+
import { QP_JS } from "./generated/quality-probe.ts";
|
|
16
17
|
import { shellForWrapped } from "./sandbox.ts";
|
|
17
18
|
|
|
18
19
|
export type VerifyStatus = "GEÇTİ" | "KALDI" | "ATLANDI";
|
|
@@ -236,6 +237,28 @@ async function runAction(cdp: Cdp, a: string): Promise<string | undefined> {
|
|
|
236
237
|
return `bilinmeyen etkilesim adimi: '${a}' (press:Tus | click:secici | type:metin | wait:ms)`;
|
|
237
238
|
}
|
|
238
239
|
|
|
240
|
+
/** Kalite ölçümü kayıt kodu: her yeni belgeden ÖNCE çalışır (web kapısıyla AYNI kaynak: sera-web sera-artifact.js QP_JS). */
|
|
241
|
+
export const QP_BOOT = `${QP_JS}
|
|
242
|
+
window.__qrec=window.__seraQP.rec(window);`;
|
|
243
|
+
/** Sayfada: oyun çizim kaydı → zemin/engel sırası + düz görünüm (yalnız tuval çizildiyse). */
|
|
244
|
+
export const QP_GAME_EXPR = `(function(){var q=window.__qrec,Q=window.__seraQP;if(!q||!Q||!q.n)return null;var fr=q.frames.slice();if(q.cur.length)fr.push(q.cur);var g=Q.ground(fr,q.cw,q.ch),fl=Q.flat({n:q.n,colors:Object.keys(q.colors).length,grads:q.grads,imgs:q.imgs});return {sunk:g.sunk,under:g.under,sample:g.sample,flat:fl&&fl.t}})()`;
|
|
245
|
+
/** Sayfada: DOM tasarım ölçümü (390px mobil görünümde çalıştırılır). */
|
|
246
|
+
export const QP_DESIGN_EXPR = "window.__seraQP?window.__seraQP.design().findings:[]";
|
|
247
|
+
|
|
248
|
+
/** Ölçüm sonucu → kullanıcıya/modele giden KALİTE satırları (saf; test edilir). */
|
|
249
|
+
export function qualityLines(game: { sunk: number; under: number; sample?: string; flat?: string } | null, design: { id: string; t: string }[]): string[] {
|
|
250
|
+
const out: string[] = [];
|
|
251
|
+
if (game) {
|
|
252
|
+
if (game.sunk >= 2)
|
|
253
|
+
out.push(`KALİTE: engeller zemin çizgisine gömülü çiziliyor (${game.sample ?? ""}); engelin alt kenarı zemin çizgisinde bitmeli.`);
|
|
254
|
+
if (game.under >= 2)
|
|
255
|
+
out.push("KALİTE: engeller zeminden ÖNCE çizildiği için zeminin altında kalıyor; sıra: arka plan, zemin, engeller, oyuncu, efekt.");
|
|
256
|
+
if (game.flat) out.push(`KALİTE: ${game.flat}`);
|
|
257
|
+
}
|
|
258
|
+
for (const d of design) out.push(`KALİTE: ${d.t}`);
|
|
259
|
+
return out;
|
|
260
|
+
}
|
|
261
|
+
|
|
239
262
|
export interface VerifyHtmlOpts {
|
|
240
263
|
url: string;
|
|
241
264
|
label: string;
|
|
@@ -295,6 +318,7 @@ export async function verifyInBrowser(o: VerifyHtmlOpts): Promise<VerifyResult>
|
|
|
295
318
|
}
|
|
296
319
|
});
|
|
297
320
|
for (const m of ["Page.enable", "Runtime.enable", "Log.enable", "Network.enable"]) await cdp.send(m);
|
|
321
|
+
await cdp.send("Page.addScriptToEvaluateOnNewDocument", { source: QP_BOOT }).catch(() => {});
|
|
298
322
|
const load = (): Promise<void> =>
|
|
299
323
|
new Promise((res) => {
|
|
300
324
|
const t = setTimeout(res, 15_000);
|
|
@@ -333,6 +357,13 @@ export async function verifyInBrowser(o: VerifyHtmlOpts): Promise<VerifyResult>
|
|
|
333
357
|
const p1 = await probe();
|
|
334
358
|
if (p1 && p1.text === 0 && p1.vis === 0)
|
|
335
359
|
addErr("Sayfa boş görünüyor (görünür metin, canvas, görsel ya da düğme yok).");
|
|
360
|
+
const hasCanvas = (
|
|
361
|
+
await cdp.send("Runtime.evaluate", { expression: "!!document.querySelector('canvas')", returnByValue: true })
|
|
362
|
+
).result?.value;
|
|
363
|
+
if (hasCanvas) for (let i = 0; i < 10; i++) for (const k of ["press:Space", "press:ArrowUp", "press:ArrowRight"]) await runAction(cdp, k).catch(() => {});
|
|
364
|
+
await sleep(300);
|
|
365
|
+
const gm = (await cdp.send("Runtime.evaluate", { expression: QP_GAME_EXPR, returnByValue: true }).catch(() => undefined))?.result?.value;
|
|
366
|
+
for (const q of qualityLines(gm ?? null, [])) warns.push(q);
|
|
336
367
|
await snap("masaustu.png");
|
|
337
368
|
if (o.actions?.length) {
|
|
338
369
|
for (const a of o.actions) {
|
|
@@ -354,6 +385,8 @@ export async function verifyInBrowser(o: VerifyHtmlOpts): Promise<VerifyResult>
|
|
|
354
385
|
await sleep(800);
|
|
355
386
|
const p2 = await probe();
|
|
356
387
|
if (p2 && p2.sw > p2.iw + 2) warns.push(`UYARI: mobilde (390px) yatay taşma var (içerik ${p2.sw}px).`);
|
|
388
|
+
const dz = (await cdp.send("Runtime.evaluate", { expression: QP_DESIGN_EXPR, returnByValue: true }).catch(() => undefined))?.result?.value;
|
|
389
|
+
for (const q of qualityLines(null, Array.isArray(dz) ? dz : [])) warns.push(q);
|
|
357
390
|
await snap("mobil.png");
|
|
358
391
|
cdp.close();
|
|
359
392
|
};
|
|
@@ -71,6 +71,7 @@ import { registerIosBuildTool } from "./ios-build-tool.ts";
|
|
|
71
71
|
import { idleFromEnv } from "./lazy-capability.ts";
|
|
72
72
|
import { type LazyMcpRuntime, makeLazyMcp } from "./lazy-mcp.ts";
|
|
73
73
|
import { registerLimitCommand } from "./limit-command.ts";
|
|
74
|
+
import { registerLinkDataTools } from "./link-data-tools.ts";
|
|
74
75
|
import { brakeMessage, LoopBrake, UserTurnGate } from "./loop-brake.ts";
|
|
75
76
|
import { formatDiagnostics, LspManager, runFormatter } from "./lsp.ts";
|
|
76
77
|
import {
|
|
@@ -185,7 +186,7 @@ import {
|
|
|
185
186
|
wrapUntrusted,
|
|
186
187
|
} from "./untrusted.ts";
|
|
187
188
|
import { registerVideoEditTool } from "./video-edit-tool.ts";
|
|
188
|
-
import { registerVideoTool, resolveSeraToken } from "./video-tool.ts";
|
|
189
|
+
import { registerVideoListTool, registerVideoTool, resolveSeraToken } from "./video-tool.ts";
|
|
189
190
|
import { registerWebTools } from "./web-tools.ts";
|
|
190
191
|
import { registerZeroKnowledge } from "./zk.ts";
|
|
191
192
|
|
|
@@ -704,13 +705,18 @@ export default async function seraCore(pi: ExtensionAPI) {
|
|
|
704
705
|
},
|
|
705
706
|
});
|
|
706
707
|
// --- Video araci (web /api/video-studio ile ayni kapi; web=CLI esitligi). Alt ajanda kapali (maliyet/kota ust ajanda).
|
|
707
|
-
if (process.env[SUBAGENT_DEPTH_ENV] !== "1")
|
|
708
|
+
if (process.env[SUBAGENT_DEPTH_ENV] !== "1") {
|
|
709
|
+
registerVideoTool(pi);
|
|
710
|
+
registerVideoListTool(pi);
|
|
711
|
+
}
|
|
708
712
|
if (process.env[SUBAGENT_DEPTH_ENV] !== "1") registerVideoEditTool(pi);
|
|
709
713
|
if (process.env[SUBAGENT_DEPTH_ENV] !== "1") registerImageTool(pi);
|
|
710
714
|
if (process.env[SUBAGENT_DEPTH_ENV] !== "1") registerIosBuildTool(pi);
|
|
711
715
|
// --- Arac esitligi: glob/grep/ls (saf Node, dogrudan) + web_fetch/web_search (tembel). Alt ajanda da gerekli (Explore/Plan).
|
|
712
716
|
registerFsTools(pi);
|
|
713
717
|
registerWebTools(pi);
|
|
718
|
+
// Web sohbetiyle esitlik: YouTube transkripti, CSV/Excel analizi, gecmis oturum aramasi (link okuma = web_fetch).
|
|
719
|
+
if (process.env[SUBAGENT_DEPTH_ENV] !== "1") registerLinkDataTools(pi);
|
|
714
720
|
// --- Uygulama Ustasi: app_verify (gercek calistirip dogrula) + open_app (varsayilan tarayicida ac). SERA_USTA=0 kapatir.
|
|
715
721
|
if (process.env[SUBAGENT_DEPTH_ENV] !== "1" && process.env.SERA_USTA !== "0")
|
|
716
722
|
registerAppTools(pi, {
|
|
@@ -735,6 +741,10 @@ export default async function seraCore(pi: ExtensionAPI) {
|
|
|
735
741
|
registerZeroKnowledge(pi, { blocked: () => haltReported || goalRunning() });
|
|
736
742
|
|
|
737
743
|
const PARALLEL_GUIDELINE = "Batch independent tool calls (esp. read-only) in one response; they run in parallel.";
|
|
744
|
+
const HONESTY_GUIDELINE =
|
|
745
|
+
"Never invent specific facts you do not know (APIs, flags, versions, products, people, prices, dates, game levels): look it up with an available search/fetch tool or in the repo; if you cannot verify, say \"I am not sure\" and mark guesses as guesses.";
|
|
746
|
+
const TONE_GUIDELINE =
|
|
747
|
+
"Tone: respectful and warm, never slangy. In Turkish do not say \"kardeş/kanka/efsane/canını sıkma/istediğinden güzel olacak\"; no empty hype or promises. Never promise work you have not done; state concretely what you changed.";
|
|
738
748
|
// --- D1-6: kural zinciri siniri + kalici bellek (her calistirmada sistem istemine; motorun zinciri korunur)
|
|
739
749
|
const seraHome = process.env.SERA_MEMORY_DIR || join(homedir(), ".sera");
|
|
740
750
|
const tokenEnv = (name: string, d: number) => {
|
|
@@ -772,6 +782,10 @@ export default async function seraCore(pi: ExtensionAPI) {
|
|
|
772
782
|
// D1-9 paralel okuma: motor ayni yanittaki araclari eszamanli calistirir; model bunu kullansin
|
|
773
783
|
if (!opts.promptGuidelines?.includes(PARALLEL_GUIDELINE))
|
|
774
784
|
opts.promptGuidelines = [...(opts.promptGuidelines ?? []), PARALLEL_GUIDELINE];
|
|
785
|
+
if (!opts.promptGuidelines?.includes(TONE_GUIDELINE))
|
|
786
|
+
opts.promptGuidelines = [...(opts.promptGuidelines ?? []), TONE_GUIDELINE];
|
|
787
|
+
if (!opts.promptGuidelines?.includes(HONESTY_GUIDELINE))
|
|
788
|
+
opts.promptGuidelines = [...(opts.promptGuidelines ?? []), HONESTY_GUIDELINE];
|
|
775
789
|
const r = applyRulesMemory(opts.contextFiles ?? [], {
|
|
776
790
|
home: seraHome,
|
|
777
791
|
cwd: ctx.cwd,
|