sera-code 0.0.0-stage → 0.1.2
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/LICENSE +21 -0
- package/NOTICE-SERA.md +33 -0
- package/README.md +27 -2
- package/THIRD_PARTY_NOTICES.md +68 -0
- package/bin/sera.mjs +145 -0
- package/dist/bundle/chunks/anthropic-messages-RD7GXOQL.js +6 -0
- package/dist/bundle/chunks/anthropic.js +75 -0
- package/dist/bundle/chunks/azure-openai-responses-CJT3KTVK.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +89 -0
- package/dist/bundle/chunks/chunk-46WGNYIE.js +82 -0
- package/dist/bundle/chunks/chunk-4UNN5OGR.js +4 -0
- package/dist/bundle/chunks/chunk-53H5DPHA.js +16 -0
- package/dist/bundle/chunks/chunk-5AGIVGSV.js +6 -0
- package/dist/bundle/chunks/chunk-6QGV3IWD.js +6 -0
- package/dist/bundle/chunks/chunk-7CBJINYJ.js +20 -0
- package/dist/bundle/chunks/chunk-7DDKXS2Q.js +2 -0
- package/dist/bundle/chunks/chunk-7RZ5BS7U.js +2 -0
- package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
- package/dist/bundle/chunks/chunk-AZC5WTED.js +1222 -0
- package/dist/bundle/chunks/chunk-BPHHHEET.js +9 -0
- package/dist/bundle/chunks/chunk-BSS6T6KQ.js +2 -0
- package/dist/bundle/chunks/chunk-CF5GWZHW.js +31 -0
- package/dist/bundle/chunks/chunk-EDSQGWII.js +44 -0
- package/dist/bundle/chunks/chunk-FFMDRXC4.js +10 -0
- package/dist/bundle/chunks/chunk-HODJBMOY.js +9 -0
- package/dist/bundle/chunks/chunk-HQBQWHLD.js +7 -0
- package/dist/bundle/chunks/chunk-HQJBN2MC.js +2 -0
- package/dist/bundle/chunks/chunk-JXWJOIH4.js +2 -0
- package/dist/bundle/chunks/chunk-KXU77PUU.js +4 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/bundle/chunks/chunk-LOMPDCMP.js +2 -0
- package/dist/bundle/chunks/chunk-LPXNMA2W.js +2 -0
- package/dist/bundle/chunks/chunk-LVVZS2NO.js +12 -0
- package/dist/bundle/chunks/chunk-M3LEVT3X.js +2 -0
- package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/bundle/chunks/chunk-PMRZO46Y.js +2 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/bundle/chunks/chunk-QTM7S6TH.js +2 -0
- package/dist/bundle/chunks/chunk-RDZVAGPR.js +2 -0
- package/dist/bundle/chunks/chunk-TLNP2BSO.js +2 -0
- package/dist/bundle/chunks/chunk-TMKHGABX.js +2 -0
- package/dist/bundle/chunks/chunk-TMTOQ7H7.js +2 -0
- package/dist/bundle/chunks/chunk-UKVNB6C4.js +2 -0
- package/dist/bundle/chunks/chunk-USJZMAIR.js +2 -0
- package/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
- package/dist/bundle/chunks/chunk-ZLAHUYDW.js +131 -0
- package/dist/bundle/chunks/chunk-ZNCN2NGY.js +60 -0
- package/dist/bundle/chunks/cli-MML2DU4A.js +51 -0
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-QPZQRBK5.js +2 -0
- package/dist/bundle/chunks/codemode-worker.js +478 -0
- package/dist/bundle/chunks/dist-ZNZCJI7B.js +7 -0
- package/dist/bundle/chunks/easter-egg-3d-VOETWRJO.js +2 -0
- package/dist/bundle/chunks/execute-HXDNZ26B.js +505 -0
- package/dist/bundle/chunks/github-copilot.js +2 -0
- package/dist/bundle/chunks/google-generative-ai-SJXMIEPZ.js +2 -0
- package/dist/bundle/chunks/google-vertex-VSXQ3BDH.js +2 -0
- package/dist/bundle/chunks/https-proxy-agent-LVOO5TPL.js +13 -0
- package/dist/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/bundle/chunks/jiti-loader-GL4HJFAD.js +21 -0
- package/dist/bundle/chunks/jiti-static-loader-2RCDI6B4.js +2 -0
- package/dist/bundle/chunks/kimi-coding.js +2 -0
- package/dist/bundle/chunks/lib-4AVRLBHM.js +9 -0
- package/dist/bundle/chunks/llama-cpp-classify-4KFSGAMH.js +22 -0
- package/dist/bundle/chunks/meta.js +2 -0
- package/dist/bundle/chunks/mistral-conversations-JYWDZV2K.js +5 -0
- package/dist/bundle/chunks/multipart-parser-FMGQ7342.js +3 -0
- package/dist/bundle/chunks/node-AUOGOBCN.js +2 -0
- package/dist/bundle/chunks/node-KCMANYC2.js +16 -0
- package/dist/bundle/chunks/openai-chatgpt.js +75 -0
- package/dist/bundle/chunks/openai-codex-responses-OQV5DCFA.js +10 -0
- package/dist/bundle/chunks/openai-codex.js +75 -0
- package/dist/bundle/chunks/openai-completions-RFDJM2W5.js +7 -0
- package/dist/bundle/chunks/openai-decisions-O6PHBSCB.js +5 -0
- package/dist/bundle/chunks/openai-responses-LVNAPALQ.js +4 -0
- package/dist/bundle/chunks/openrouter-images-4WG6OOLH.js +2 -0
- package/dist/bundle/chunks/openrouter.js +75 -0
- package/dist/bundle/chunks/pdfjs-BETXZQ7A.js +108 -0
- package/dist/bundle/chunks/pdfjs-decoders-37HBPYHX.js +2 -0
- package/dist/bundle/chunks/pdfjs-jbig2-MH7WRXUP.js +2 -0
- package/dist/bundle/chunks/pdfjs-jbig2_nowasm_fallback-UVK7AQLA.js +2 -0
- package/dist/bundle/chunks/pdfjs-openjpeg-TC2QHC4G.js +2 -0
- package/dist/bundle/chunks/pdfjs-openjpeg_nowasm_fallback-ZC2FTHCZ.js +3 -0
- package/dist/bundle/chunks/pi-messages-EZXKVRR6.js +8 -0
- package/dist/bundle/chunks/radius.js +75 -0
- package/dist/bundle/chunks/runtime-JAH75CB5.js +2 -0
- package/dist/bundle/chunks/src-QKGKDFSU.js +4 -0
- package/dist/bundle/chunks/typesafe-system-one-X3JT6ECA.js +2 -0
- package/dist/bundle/chunks/virtual-modules-Z2V3PTLI.js +2 -0
- package/dist/bundle/chunks/xai.js +2 -0
- package/dist/bundle/cli-runtime.js +3 -0
- package/dist/bundle/cli.js +5 -0
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/rpc-entry.js +3 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +228 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1085 -0
- package/dist/core/export-html/template.html +56 -0
- package/dist/core/export-html/template.js +2044 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +110 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +79 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/theme/dark.json +81 -0
- package/dist/modes/interactive/theme/light.json +81 -0
- package/dist/modes/interactive/theme/system-theme.d.ts +55 -0
- package/dist/modes/interactive/theme/system-theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/system-theme.js +546 -0
- package/dist/modes/interactive/theme/system-theme.js.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts +81 -0
- package/dist/modes/interactive/theme/theme-controller.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-controller.js +210 -0
- package/dist/modes/interactive/theme/theme-controller.js.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +155 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme.js +905 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -0
- package/docs/cli-integration.md +106 -0
- package/docs/cli.md +333 -0
- package/docs/codemode.md +230 -0
- package/docs/compaction.md +463 -0
- package/docs/configuration.md +47 -0
- package/docs/containerization.md +183 -0
- package/docs/custom-provider.md +227 -0
- package/docs/docs.json +220 -0
- package/docs/environment-variables.md +102 -0
- package/docs/extensions.md +400 -0
- package/docs/how-pi-works.md +49 -0
- package/docs/index.md +39 -0
- package/docs/json.md +226 -0
- package/docs/keybindings.md +195 -0
- package/docs/llama-cpp.md +121 -0
- package/docs/mcp.md +272 -0
- package/docs/message-types.md +279 -0
- package/docs/models-configuration.md +196 -0
- package/docs/models.md +225 -0
- package/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/docs/packages.md +131 -0
- package/docs/prompt-templates.md +59 -0
- package/docs/providers.md +247 -0
- package/docs/quickstart.md +136 -0
- package/docs/rpc-commands.md +860 -0
- package/docs/rpc-extension-ui.md +200 -0
- package/docs/rpc.md +193 -0
- package/docs/sdk.md +147 -0
- package/docs/security.md +99 -0
- package/docs/session-format.md +293 -0
- package/docs/sessions.md +66 -0
- package/docs/settings.md +172 -0
- package/docs/shell-aliases.md +93 -0
- package/docs/skills.md +93 -0
- package/docs/slash-commands.md +61 -0
- package/docs/terminal-setup.md +233 -0
- package/docs/termux.md +117 -0
- package/docs/themes.md +138 -0
- package/docs/tmux.md +55 -0
- package/docs/tui.md +195 -0
- package/docs/usage.md +94 -0
- package/docs/virtual-models.md +114 -0
- package/docs/windows.md +81 -0
- package/lib/auth.js +377 -0
- package/lib/provider.js +71 -0
- package/package.json +43 -5
- package/sera-core/skills/apple-tasarim/SKILL.md +48 -0
- package/sera-core/skills/apple-tasarim/referanslar/apple-hig.md +55 -0
- package/sera-core/skills/belge-yarat/SKILL.md +64 -0
- package/sera-core/skills/belge-yarat/referanslar/belge-yazim.md +60 -0
- package/sera-core/skills/derin-arastirma/SKILL.md +52 -0
- package/sera-core/skills/derin-arastirma/referanslar/arastirma-yontem.md +50 -0
- package/sera-core/skills/dusunme-dogrulama/SKILL.md +59 -0
- package/sera-core/skills/dusunme-dogrulama/referanslar/dusunme-kontrol.md +54 -0
- package/sera-core/skills/film-stilleri/SKILL.md +51 -0
- package/sera-core/skills/hyperframes/LICENSE-UPSTREAM +190 -0
- package/sera-core/skills/hyperframes/SKILL.md +79 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/biennale-yellow/FRAME.md +289 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/blockframe/FRAME.md +275 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/blue-professional/FRAME.md +307 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/bold-poster/FRAME.md +275 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/broadside/FRAME.md +284 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/capsule/FRAME.md +284 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/cartesian/FRAME.md +278 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/cobalt-grid/FRAME.md +265 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/code-editorial/FRAME.md +277 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/coral/FRAME.md +314 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/creative-mode/FRAME.md +333 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/daisy-days/FRAME.md +274 -0
- package/sera-core/skills/hyperframes/assets/frame-presets/editorial-forest/FRAME.md +265 -0
- package/sera-core/skills/hyperframes/references/captions.md +46 -0
- package/sera-core/skills/hyperframes/references/film.md +48 -0
- package/sera-core/skills/hyperframes/references/format.md +159 -0
- package/sera-core/skills/hyperframes/references/look.md +69 -0
- package/sera-core/skills/hyperframes/references/motion.md +95 -0
- package/sera-core/skills/hyperframes/references/overlays.md +39 -0
- package/sera-core/skills/hyperframes/references/path-tracing.md +36 -0
- package/sera-core/skills/hyperframes/references/plugin-installation.md +42 -0
- package/sera-core/skills/hyperframes/references/review.md +51 -0
- package/sera-core/skills/hyperframes/references/runtimes.md +69 -0
- package/sera-core/skills/hyperframes/references/skill-lifecycle.md +54 -0
- package/sera-core/skills/hyperframes/references/sound.md +43 -0
- package/sera-core/skills/hyperframes/references/spec.md +76 -0
- package/sera-core/skills/hyperframes/references/story.md +103 -0
- package/sera-core/skills/hyperframes/references/storyboard-format.md +107 -0
- package/sera-core/skills/hyperframes/references/storyboard.md +36 -0
- package/sera-core/skills/hyperframes/references/types/3d.md +25 -0
- package/sera-core/skills/hyperframes/references/types/character.md +20 -0
- package/sera-core/skills/hyperframes/references/types/data.md +19 -0
- package/sera-core/skills/hyperframes/references/types/explainer.md +34 -0
- package/sera-core/skills/hyperframes/references/types/launch.md +41 -0
- package/sera-core/skills/hyperframes/references/types/music.md +24 -0
- package/sera-core/skills/hyperframes/references/types/vertical.md +23 -0
- package/sera-core/skills/hyperframes-cli/LICENSE-UPSTREAM +190 -0
- package/sera-core/skills/hyperframes-cli/SKILL.md +99 -0
- package/sera-core/skills/hyperframes-cli/references/beats.md +17 -0
- package/sera-core/skills/hyperframes-cli/references/compare-and-batch.md +105 -0
- package/sera-core/skills/hyperframes-cli/references/conventions.md +16 -0
- package/sera-core/skills/hyperframes-cli/references/doctor-browser.md +80 -0
- package/sera-core/skills/hyperframes-cli/references/feedback.md +14 -0
- package/sera-core/skills/hyperframes-cli/references/init-and-scaffold.md +75 -0
- package/sera-core/skills/hyperframes-cli/references/lint-validate-inspect.md +164 -0
- package/sera-core/skills/hyperframes-cli/references/preview-render.md +204 -0
- package/sera-core/skills/hyperframes-cli/references/upgrade-info-misc.md +134 -0
- package/sera-core/skills/impeccable/LICENSE-UPSTREAM +191 -0
- package/sera-core/skills/impeccable/NOTICE-UPSTREAM.md +11 -0
- package/sera-core/skills/impeccable/SKILL.md +89 -0
- package/sera-core/skills/impeccable/reference/adapt.md +318 -0
- package/sera-core/skills/impeccable/reference/adapt.native.md +58 -0
- package/sera-core/skills/impeccable/reference/android.md +46 -0
- package/sera-core/skills/impeccable/reference/animate.md +89 -0
- package/sera-core/skills/impeccable/reference/audit.md +139 -0
- package/sera-core/skills/impeccable/reference/audit.native.md +139 -0
- package/sera-core/skills/impeccable/reference/bolder.md +33 -0
- package/sera-core/skills/impeccable/reference/clarify.md +94 -0
- package/sera-core/skills/impeccable/reference/colorize.md +86 -0
- package/sera-core/skills/impeccable/reference/component-review.md +63 -0
- package/sera-core/skills/impeccable/reference/craft-floor.md +44 -0
- package/sera-core/skills/impeccable/reference/craft.md +5 -0
- package/sera-core/skills/impeccable/reference/critique.md +819 -0
- package/sera-core/skills/impeccable/reference/degraded/asset-producer.md +42 -0
- package/sera-core/skills/impeccable/reference/degraded/documenter.md +24 -0
- package/sera-core/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/sera-core/skills/impeccable/reference/degraded/manual-edit-applier.md +93 -0
- package/sera-core/skills/impeccable/reference/delight.md +70 -0
- package/sera-core/skills/impeccable/reference/distill.md +111 -0
- package/sera-core/skills/impeccable/reference/doctor.md +54 -0
- package/sera-core/skills/impeccable/reference/document.md +416 -0
- package/sera-core/skills/impeccable/reference/extract.md +69 -0
- package/sera-core/skills/impeccable/reference/generate.md +101 -0
- package/sera-core/skills/impeccable/reference/harden.md +362 -0
- package/sera-core/skills/impeccable/reference/hooks.md +120 -0
- package/sera-core/skills/impeccable/reference/init.md +133 -0
- package/sera-core/skills/impeccable/reference/ios.md +51 -0
- package/sera-core/skills/impeccable/reference/layout.md +84 -0
- package/sera-core/skills/impeccable/reference/live-setup.md +104 -0
- package/sera-core/skills/impeccable/reference/live.md +327 -0
- package/sera-core/skills/impeccable/reference/mode-operate.md +21 -0
- package/sera-core/skills/impeccable/reference/mode-persuade.md +19 -0
- package/sera-core/skills/impeccable/reference/mode-read.md +21 -0
- package/sera-core/skills/impeccable/reference/new-work.md +152 -0
- package/sera-core/skills/impeccable/reference/onboard.md +234 -0
- package/sera-core/skills/impeccable/reference/operate.md +61 -0
- package/sera-core/skills/impeccable/reference/optimize.md +257 -0
- package/sera-core/skills/impeccable/reference/overdrive.md +127 -0
- package/sera-core/skills/impeccable/reference/polish.md +105 -0
- package/sera-core/skills/impeccable/reference/quieter.md +99 -0
- package/sera-core/skills/impeccable/reference/region-map.md +26 -0
- package/sera-core/skills/impeccable/reference/routing.md +24 -0
- package/sera-core/skills/impeccable/reference/shape.md +59 -0
- package/sera-core/skills/impeccable/reference/typeset.md +90 -0
- package/sera-core/skills/impeccable/reference/visualize.md +47 -0
- package/sera-core/skills/oyun-yarat/SKILL.md +106 -0
- package/sera-core/skills/oyun-yarat/referanslar/3b-yaris.md +74 -0
- package/sera-core/skills/oyun-yarat/referanslar/kaplay.md +99 -0
- package/sera-core/skills/oyun-yarat/referanslar/oyun-desenleri.md +73 -0
- package/sera-core/skills/oyun-yarat/sablonlar/kaplay-2d.html +164 -0
- package/sera-core/skills/oyun-yarat/sablonlar/three-yaris.html +149 -0
- package/sera-core/skills/oyun-yarat/sablonlar/tuval-minimal.html +77 -0
- package/sera-core/skills/receiving-code-review/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/receiving-code-review/SKILL.md +205 -0
- package/sera-core/skills/refero-design/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/refero-design/SKILL.md +534 -0
- package/sera-core/skills/refero-design/references/anti-ai-slop.md +292 -0
- package/sera-core/skills/refero-design/references/color.md +563 -0
- package/sera-core/skills/refero-design/references/copywriting.md +222 -0
- package/sera-core/skills/refero-design/references/craft-details.md +525 -0
- package/sera-core/skills/refero-design/references/example-workflow.md +264 -0
- package/sera-core/skills/refero-design/references/icons.md +166 -0
- package/sera-core/skills/refero-design/references/mcp-tools.md +258 -0
- package/sera-core/skills/refero-design/references/motion.md +504 -0
- package/sera-core/skills/refero-design/references/typography.md +737 -0
- package/sera-core/skills/refero-design/references/visual-workflow.md +105 -0
- package/sera-core/skills/requesting-code-review/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/requesting-code-review/SKILL.md +95 -0
- package/sera-core/skills/requesting-code-review/code-reviewer.md +198 -0
- package/sera-core/skills/reverse-engineer-anything/DISCLAIMER.md +136 -0
- package/sera-core/skills/reverse-engineer-anything/LICENSE-REA-MIT +21 -0
- package/sera-core/skills/reverse-engineer-anything/SKILL.md +363 -0
- package/sera-core/skills/reverse-engineer-anything/THIRD_PARTY_NOTICES.md +135 -0
- package/sera-core/skills/reverse-engineer-anything/references/android-applications.md +36 -0
- package/sera-core/skills/reverse-engineer-anything/references/connection-and-recovery.md +127 -0
- package/sera-core/skills/reverse-engineer-anything/references/evidence-workflows.md +71 -0
- package/sera-core/skills/reverse-engineer-anything/references/javascript-applications.md +218 -0
- package/sera-core/skills/reverse-engineer-anything/references/native-and-artifacts.md +297 -0
- package/sera-core/skills/reverse-engineer-anything/references/runtime-observation.md +78 -0
- package/sera-core/skills/seo-audit/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/seo-audit/SKILL.md +210 -0
- package/sera-core/skills/sera-guvenlik-denetim/SKILL.md +44 -0
- package/sera-core/skills/sera-guvenlik-denetim/referanslar/guvenlik-listesi.md +33 -0
- package/sera-core/skills/sera-hata-ayikla/SKILL.md +27 -0
- package/sera-core/skills/sera-hata-ayikla/referanslar/hata-ayiklama.md +37 -0
- package/sera-core/skills/sera-kod-inceleme/SKILL.md +44 -0
- package/sera-core/skills/sera-kod-inceleme/referanslar/inceleme-listesi.md +62 -0
- package/sera-core/skills/sera-ofis-dosya/SKILL.md +27 -0
- package/sera-core/skills/sera-ofis-dosya/referanslar/ofis-dosya.md +93 -0
- package/sera-core/skills/sera-research/SKILL.md +90 -0
- package/sera-core/skills/sera-tasarim/SKILL.md +149 -0
- package/sera-core/skills/sera-teslim-sozlesmesi/SKILL.md +592 -0
- package/sera-core/skills/sera-test-yaz/SKILL.md +26 -0
- package/sera-core/skills/sera-test-yaz/referanslar/test-yazimi.md +35 -0
- package/sera-core/skills/sera-veri-gorsel/SKILL.md +65 -0
- package/sera-core/skills/sera-web-test/SKILL.md +26 -0
- package/sera-core/skills/sera-web-test/referanslar/web-test.md +44 -0
- package/sera-core/skills/sera-zamanli-gorev/SKILL.md +22 -0
- package/sera-core/skills/sera-zamanli-gorev/referanslar/zamanli-gorev.md +58 -0
- package/sera-core/skills/systematic-debugging/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/systematic-debugging/SKILL.md +283 -0
- package/sera-core/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/sera-core/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/sera-core/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/sera-core/skills/test-driven-development/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/test-driven-development/SKILL.md +330 -0
- package/sera-core/skills/test-driven-development/writing-good-tests.md +198 -0
- package/sera-core/skills/ticaret-icerik/SKILL.md +49 -0
- package/sera-core/skills/ticaret-icerik/referanslar/ticaret-icerik.md +54 -0
- package/sera-core/skills/uygulama-yarat/SKILL.md +95 -0
- package/sera-core/skills/uygulama-yarat/referanslar/uygulama-desenleri.md +63 -0
- package/sera-core/skills/uygulama-yarat/sablonlar/uygulama-tek-dosya.html +121 -0
- package/sera-core/skills/uyumluluk-denetim/SKILL.md +56 -0
- package/sera-core/skills/uyumluluk-denetim/referanslar/mevzuat-tablosu.md +65 -0
- package/sera-core/skills/veri-analizi/SKILL.md +54 -0
- package/sera-core/skills/veri-analizi/referanslar/veri-analizi-yontem.md +49 -0
- package/sera-core/skills/veri-analizi/sablonlar/profil.mjs +79 -0
- package/sera-core/skills/video-duzen/SKILL.md +50 -0
- package/sera-core/skills/video-duzen/referanslar/video-duzen.md +100 -0
- package/sera-core/skills/web-yayin-listesi/SKILL.md +115 -0
- package/sera-core/skills/writing-plans/LICENSE-UPSTREAM +21 -0
- package/sera-core/skills/writing-plans/SKILL.md +204 -0
- package/sera-core/src/action-nudge.ts +200 -0
- package/sera-core/src/agent-mode.ts +143 -0
- package/sera-core/src/agents.ts +185 -0
- package/sera-core/src/app-master.ts +275 -0
- package/sera-core/src/app-verify.ts +551 -0
- package/sera-core/src/approval.ts +131 -0
- package/sera-core/src/budget.ts +136 -0
- package/sera-core/src/command-policy.ts +808 -0
- package/sera-core/src/config.ts +135 -0
- package/sera-core/src/context-diet.ts +272 -0
- package/sera-core/src/device-id.ts +48 -0
- package/sera-core/src/dogal-arac.ts +203 -0
- package/sera-core/src/dogal-niyet.ts +173 -0
- package/sera-core/src/egress-allow.ts +52 -0
- package/sera-core/src/export.ts +124 -0
- package/sera-core/src/exposure.ts +8 -0
- package/sera-core/src/extension.ts +2410 -0
- package/sera-core/src/fs-tools.ts +448 -0
- package/sera-core/src/generated/build-rules.ts +26 -0
- package/sera-core/src/generated/zero-knowledge.ts +170 -0
- package/sera-core/src/github-agent-command.ts +133 -0
- package/sera-core/src/github-agent-engine.ts +198 -0
- package/sera-core/src/github-agent-schedule.ts +180 -0
- package/sera-core/src/github-agent.ts +669 -0
- package/sera-core/src/github-ajan-akis.ts +193 -0
- package/sera-core/src/github-ajan-gercek.ts +102 -0
- package/sera-core/src/github-tick.ts +78 -0
- package/sera-core/src/github-yedek.ts +269 -0
- package/sera-core/src/goal.ts +119 -0
- package/sera-core/src/handoff.ts +132 -0
- package/sera-core/src/hooks.ts +284 -0
- package/sera-core/src/image-tool.ts +118 -0
- package/sera-core/src/intake-brief.ts +82 -0
- package/sera-core/src/intake-core.ts +1152 -0
- package/sera-core/src/intake-hook.ts +88 -0
- package/sera-core/src/ios-build-tool.ts +134 -0
- package/sera-core/src/lazy-capability.ts +125 -0
- package/sera-core/src/lazy-mcp.ts +300 -0
- package/sera-core/src/limit-command.ts +51 -0
- package/sera-core/src/loop-brake.ts +129 -0
- package/sera-core/src/lsp.ts +618 -0
- package/sera-core/src/mcp-bridge.ts +159 -0
- package/sera-core/src/mcp-pin.ts +105 -0
- package/sera-core/src/mcp-ssrf.ts +124 -0
- package/sera-core/src/message-cap.ts +45 -0
- package/sera-core/src/model-list.ts +108 -0
- package/sera-core/src/no-progress.ts +177 -0
- package/sera-core/src/notebook-tool.ts +179 -0
- package/sera-core/src/ofis.ts +473 -0
- package/sera-core/src/path-guard.ts +139 -0
- package/sera-core/src/permission-bridge.ts +228 -0
- package/sera-core/src/policy-chain.ts +122 -0
- package/sera-core/src/pricing.ts +71 -0
- package/sera-core/src/proc.ts +149 -0
- package/sera-core/src/rea.ts +188 -0
- package/sera-core/src/repo-map.ts +230 -0
- package/sera-core/src/research.ts +347 -0
- package/sera-core/src/rules-memory.ts +227 -0
- package/sera-core/src/sandbox.ts +476 -0
- package/sera-core/src/server-error.ts +78 -0
- package/sera-core/src/skills.ts +268 -0
- package/sera-core/src/snapshot.ts +143 -0
- package/sera-core/src/spec-gate.ts +112 -0
- package/sera-core/src/subagent.ts +261 -0
- package/sera-core/src/teslim.ts +121 -0
- package/sera-core/src/test-fix.ts +184 -0
- package/sera-core/src/todo-question.ts +163 -0
- package/sera-core/src/turn-snapshots.ts +126 -0
- package/sera-core/src/tuval/arac.ts +338 -0
- package/sera-core/src/tuval/arsiv.ts +106 -0
- package/sera-core/src/tuval/belge.ts +216 -0
- package/sera-core/src/tuval/birlestir.ts +282 -0
- package/sera-core/src/tuval/disa.ts +235 -0
- package/sera-core/src/tuval/editor.ts +583 -0
- package/sera-core/src/tuval/film-cekirdek.ts +170 -0
- package/sera-core/src/tuval/film-disa.ts +188 -0
- package/sera-core/src/tuval/film-oynatici.ts +307 -0
- package/sera-core/src/tuval/kimlik.ts +156 -0
- package/sera-core/src/tuval/pano.ts +763 -0
- package/sera-core/src/tuval/proje.ts +728 -0
- package/sera-core/src/tuval/sistem-cekirdek.ts +167 -0
- package/sera-core/src/tuval/sistem.ts +328 -0
- package/sera-core/src/tuval/sunucu.ts +413 -0
- package/sera-core/src/tuval/uretim.ts +24 -0
- package/sera-core/src/tuval/veri-cekirdek.ts +477 -0
- package/sera-core/src/tuval/xlsx.ts +215 -0
- package/sera-core/src/tuval/zip.ts +163 -0
- package/sera-core/src/untrusted.ts +201 -0
- package/sera-core/src/video-edit-tool.ts +411 -0
- package/sera-core/src/video-tool.ts +217 -0
- package/sera-core/src/web-tools.ts +257 -0
- package/sera-core/src/zk.ts +104 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="tr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
|
+
<title>Sera Oyun</title>
|
|
7
|
+
<style>
|
|
8
|
+
html,body{margin:0;height:100%;background:#0b0f1a;overflow:hidden}
|
|
9
|
+
body{display:grid;place-items:center}
|
|
10
|
+
canvas{display:block;max-width:100vw;max-height:100vh;image-rendering:auto}
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<canvas id="oyun"></canvas>
|
|
15
|
+
<!-- KAPLAY (kaboom.js devamı), tek CDN, kurulum yok -->
|
|
16
|
+
<script src="https://unpkg.com/kaplay@3001.0.19/dist/kaplay.js"></script>
|
|
17
|
+
<script>
|
|
18
|
+
/* ============================================================================
|
|
19
|
+
SERA OYUN ŞABLONU — KAPLAY 2B
|
|
20
|
+
Küçük ama TAM oynanabilir bir örnek: topla (iyi) / kaç (kötü), skor + can,
|
|
21
|
+
parçacık/sarsıntı/flaş juice, menü/oyun/bitiş sahneleri, duraklat(P)/yeniden(R).
|
|
22
|
+
Sera: değerleri ve nesneleri değiştirerek istenen oyuna dönüştür. Çıplak
|
|
23
|
+
rect/circle BIRAKMA; katmanlı 'parlak' bileşenini kullan.
|
|
24
|
+
============================================================================ */
|
|
25
|
+
const k = kaplay({
|
|
26
|
+
canvas: document.getElementById("oyun"),
|
|
27
|
+
width: 960, height: 540, letterbox: true, global: true, pixelDensity: 2,
|
|
28
|
+
background: [10, 14, 26],
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// --- Palet (tek palet, tüm oyun) — PASTEL/NEON karışımı ---
|
|
32
|
+
const PAL = { bg1:[18,22,40], bg2:[40,26,64], oyuncu:[120,210,255], iyi:[150,240,170], kotu:[255,110,140], hud:[240,238,255] };
|
|
33
|
+
|
|
34
|
+
// Ok tuşları sayfayı kaydırmasın
|
|
35
|
+
addEventListener("keydown", (e)=>{ if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key)) e.preventDefault(); }, {passive:false});
|
|
36
|
+
|
|
37
|
+
// --- Gradyan arka plan (düz siyah DEĞİL) + boşta süzülen yıldızlar ---
|
|
38
|
+
function arkaPlan() {
|
|
39
|
+
const BANT=30;
|
|
40
|
+
onDraw(()=>{
|
|
41
|
+
for(let i=0;i<BANT;i++){
|
|
42
|
+
const t=i/(BANT-1);
|
|
43
|
+
const c=[ PAL.bg1[0]+(PAL.bg2[0]-PAL.bg1[0])*t, PAL.bg1[1]+(PAL.bg2[1]-PAL.bg1[1])*t, PAL.bg1[2]+(PAL.bg2[2]-PAL.bg1[2])*t ];
|
|
44
|
+
drawRect({ width:width(), height:height()/BANT+1, pos:vec2(0, i*height()/BANT), color:rgb(c[0],c[1],c[2]) });
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
for (let i=0;i<40;i++){
|
|
48
|
+
const s = add([ pos(rand(0,960),rand(0,540)), z(-90), opacity(rand(0.2,0.6)),
|
|
49
|
+
{ r: rand(1,2.4), yb: rand(6,18), t: rand(0,10) } ]);
|
|
50
|
+
s.onDraw(()=> drawCircle({ radius:s.r, color:rgb(255,255,255), opacity:s.opacity }));
|
|
51
|
+
s.onUpdate(()=>{ s.t+=dt(); s.pos.y += Math.sin(s.t)*s.yb*dt(); });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// --- "Parlak" katmanlı daire bileşeni (gölge+gövde+parlama+vurgu) — çıplak circle yerine ---
|
|
56
|
+
function parlak(renk, yaricap) {
|
|
57
|
+
return { id:"parlak", draw(){
|
|
58
|
+
drawCircle({ radius:yaricap*1.25, pos:vec2(0,yaricap*0.35), color:rgb(0,0,0), opacity:0.25 }); // gölge
|
|
59
|
+
drawCircle({ radius:yaricap*1.35, color:rgb(...renk), opacity:0.18 }); // dış parlama
|
|
60
|
+
drawCircle({ radius:yaricap, color:rgb(...renk) }); // gövde
|
|
61
|
+
drawCircle({ radius:yaricap*0.78, color:rgb(255,255,255), opacity:0.12 }); // iç ışık
|
|
62
|
+
drawCircle({ radius:yaricap*0.32, pos:vec2(-yaricap*0.3,-yaricap*0.35), color:rgb(255,255,255), opacity:0.7 }); // vurgu
|
|
63
|
+
}};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// --- Juice: parçacık patlaması + yüzen yazı ---
|
|
67
|
+
function patlat(p, renk, n=14){
|
|
68
|
+
for(let i=0;i<n;i++){
|
|
69
|
+
const a=rand(0,Math.PI*2), hz=rand(60,260);
|
|
70
|
+
const pr=add([ pos(p), z(50), opacity(1), { v:vec2(Math.cos(a),Math.sin(a)).scale(hz), r:rand(2,5) } ]);
|
|
71
|
+
pr.onDraw(()=>drawCircle({radius:pr.r,color:rgb(...renk),opacity:pr.opacity}));
|
|
72
|
+
pr.onUpdate(()=>{ pr.pos=pr.pos.add(pr.v.scale(dt())); pr.v=pr.v.scale(0.92); pr.opacity-=dt()*1.8; if(pr.opacity<=0)destroy(pr); });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function yuzenYazi(p, metin, renk){
|
|
76
|
+
const t=add([ text(metin,{size:26}), pos(p), anchor("center"), color(...renk), z(60), opacity(1), { t:0 } ]);
|
|
77
|
+
t.onUpdate(()=>{ t.t+=dt(); t.pos.y-=40*dt(); t.opacity-=dt()*1.4; if(t.opacity<=0)destroy(t); });
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Ses: gerçek oyunda açılışta loadSound("pop","...") ile yükle, burada play("pop") çağır.
|
|
81
|
+
// AudioContext ilk tuş/tık ile açılır; KAPLAY bunu kendi yönetir.
|
|
82
|
+
|
|
83
|
+
/* ===================== SAHNE: MENÜ ===================== */
|
|
84
|
+
scene("menu", ()=>{
|
|
85
|
+
arkaPlan();
|
|
86
|
+
add([ text("SERA OYUN", {size:64}), pos(center().x, 180), anchor("center"), color(...PAL.hud) ]);
|
|
87
|
+
add([ text("Topla yeşili, kaç kırmızıdan", {size:24}), pos(center().x, 250), anchor("center"), color(...PAL.iyi) ]);
|
|
88
|
+
add([ text("← → ile hareket · BOŞLUK ile başla", {size:22}), pos(center().x, 330), anchor("center"), color(...PAL.hud), opacity(0.85) ]);
|
|
89
|
+
const o = add([ pos(center().x, 420), parlak(PAL.oyuncu, 22) ]);
|
|
90
|
+
o.onUpdate(()=> o.pos.x = center().x + Math.sin(time()*2)*60);
|
|
91
|
+
onKeyPress("space", ()=>go("oyun"));
|
|
92
|
+
onClick(()=>go("oyun"));
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/* ===================== SAHNE: OYUN ===================== */
|
|
96
|
+
scene("oyun", ()=>{
|
|
97
|
+
arkaPlan();
|
|
98
|
+
let skor=0, can=3, bitti=false, durdur=false, hiz=320, spawn=0.9;
|
|
99
|
+
|
|
100
|
+
const oyuncu = add([ pos(center().x, 470), scale(1), parlak(PAL.oyuncu,22) ]);
|
|
101
|
+
oyuncu.onUpdate(()=>{
|
|
102
|
+
if(durdur||bitti) return;
|
|
103
|
+
const dir = (isKeyDown("right")?1:0)-(isKeyDown("left")?1:0);
|
|
104
|
+
oyuncu.pos.x = clamp(oyuncu.pos.x + dir*hiz*dt(), 28, 960-28);
|
|
105
|
+
// squash/stretch geri dönüşü (ez-geril)
|
|
106
|
+
oyuncu.scale = vec2(lerp(oyuncu.scale.x,1,dt()*10), lerp(oyuncu.scale.y,1,dt()*10));
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// HUD (sabit, en önde, 20+ punto)
|
|
110
|
+
const hudSkor = add([ text("Skor 0",{size:28}), pos(20,16), fixed(), z(100), color(...PAL.hud) ]);
|
|
111
|
+
const hudCan = add([ text("♥♥♥",{size:28}), pos(960-20,16), anchor("topright"), fixed(), z(100), color(...PAL.kotu) ]);
|
|
112
|
+
const ipucu = add([ text("P duraklat · R yeniden",{size:18}), pos(center().x, 520), anchor("center"), fixed(), z(100), color(...PAL.hud), opacity(0.6) ]);
|
|
113
|
+
|
|
114
|
+
// Düşen nesneler
|
|
115
|
+
function dusur(){
|
|
116
|
+
if(bitti||durdur) return;
|
|
117
|
+
const iyi = rand()>0.32;
|
|
118
|
+
const x = rand(40,920);
|
|
119
|
+
const n = add([ pos(x,-30), parlak(iyi?PAL.iyi:PAL.kotu, 18), { dv: rand(150,230)+skor*2, iyi } ]);
|
|
120
|
+
n.onUpdate(()=>{ if(durdur) return; n.pos.y += n.dv*dt(); if(n.pos.y>580) destroy(n); });
|
|
121
|
+
nesneler.push(n);
|
|
122
|
+
}
|
|
123
|
+
const nesneler=[];
|
|
124
|
+
const sp = loop(spawn, dusur);
|
|
125
|
+
|
|
126
|
+
// Çarpışma (manuel, basit ve güvenilir)
|
|
127
|
+
onUpdate(()=>{
|
|
128
|
+
if(bitti||durdur) return;
|
|
129
|
+
for(const n of [...nesneler]){
|
|
130
|
+
if(!n.exists()) continue;
|
|
131
|
+
if(oyuncu.pos.dist(n.pos) < 40){
|
|
132
|
+
patlat(n.pos, n.iyi?PAL.iyi:PAL.kotu);
|
|
133
|
+
if(n.iyi){ skor+=1; yuzenYazi(n.pos,"+1",PAL.iyi); shake(2); oyuncu.scale=vec2(1.35,0.7); }
|
|
134
|
+
else { can-=1; yuzenYazi(n.pos,"-1",PAL.kotu); shake(10); flash(PAL.kotu); oyuncu.scale=vec2(0.7,1.3); }
|
|
135
|
+
destroy(n);
|
|
136
|
+
hudSkor.text="Skor "+skor; hudCan.text="♥".repeat(Math.max(0,can));
|
|
137
|
+
if(can<=0) oyunBitti();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// Renk flaşı (tam ekran, kısa)
|
|
143
|
+
let flashT=0, flashC=[255,255,255];
|
|
144
|
+
function flash(c){ flashC=c; flashT=0.18; }
|
|
145
|
+
onDraw(()=>{ if(flashT>0){ drawRect({width:width(),height:height(),pos:vec2(0,0),color:rgb(...flashC),opacity:flashT*1.1}); } });
|
|
146
|
+
onUpdate(()=>{ if(flashT>0) flashT=Math.max(0,flashT-dt()); });
|
|
147
|
+
|
|
148
|
+
onKeyPress("p", ()=>{ if(!bitti){ durdur=!durdur; ipucu.text = durdur?"DURAKLADI — P ile devam":"P duraklat · R yeniden"; }});
|
|
149
|
+
onKeyPress("r", ()=>go("oyun"));
|
|
150
|
+
|
|
151
|
+
function oyunBitti(){
|
|
152
|
+
bitti=true; sp.cancel(); shake(16);
|
|
153
|
+
add([ rect(width(),height()), pos(0,0), color(0,0,0), opacity(0.55), z(140), fixed() ]);
|
|
154
|
+
add([ text("OYUN BİTTİ",{size:56}), pos(center().x,210), anchor("center"), color(...PAL.hud), z(141), fixed() ]);
|
|
155
|
+
add([ text("Skor: "+skor,{size:34}), pos(center().x,280), anchor("center"), color(...PAL.iyi), z(141), fixed() ]);
|
|
156
|
+
add([ text("R ile yeniden · BOŞLUK menü",{size:24}), pos(center().x,350), anchor("center"), color(...PAL.hud), z(141), fixed(), opacity(0.9) ]);
|
|
157
|
+
onKeyPress("space", ()=>go("menu"));
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
go("menu");
|
|
162
|
+
</script>
|
|
163
|
+
</body>
|
|
164
|
+
</html>
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="tr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
|
+
<title>Sera Yarış 3B</title>
|
|
7
|
+
<style>
|
|
8
|
+
html,body{margin:0;height:100%;overflow:hidden;background:#87b7e0;font-family:system-ui,sans-serif;color:#fff}
|
|
9
|
+
#hud{position:fixed;inset:0;pointer-events:none;z-index:10}
|
|
10
|
+
#hiz{position:absolute;left:20px;bottom:20px;font-weight:800;font-size:46px;text-shadow:0 2px 8px #0008}
|
|
11
|
+
#hiz small{font-size:18px;opacity:.8}
|
|
12
|
+
#tur{position:absolute;right:20px;top:16px;text-align:right;font-size:20px;text-shadow:0 2px 8px #0008;line-height:1.5}
|
|
13
|
+
#ipucu{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);opacity:.7;font-size:15px}
|
|
14
|
+
#orta{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:72px;text-shadow:0 4px 16px #0008}
|
|
15
|
+
</style>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<div id="hud">
|
|
19
|
+
<div id="hiz">0<small> km/s</small></div>
|
|
20
|
+
<div id="tur">Tur 1<br>Süre 0.0<br>En iyi —</div>
|
|
21
|
+
<div id="ipucu">↑ gaz · ↓ fren · ← → direksiyon · BOŞLUK el freni (drift) · R sıfırla</div>
|
|
22
|
+
<div id="orta"></div>
|
|
23
|
+
</div>
|
|
24
|
+
<script type="importmap">{"imports":{"three":"https://unpkg.com/three@0.169.0/build/three.module.js"}}</script>
|
|
25
|
+
<script type="module">
|
|
26
|
+
import * as THREE from "three";
|
|
27
|
+
|
|
28
|
+
/* SERA 3B YARIŞ ŞABLONU — oval pist, arcade-sim araba fiziği, takip kamerası, tur sayacı.
|
|
29
|
+
Sera: pisti/araba rengini/fizik değerlerini kullanıcı isteğine göre değiştir. */
|
|
30
|
+
|
|
31
|
+
const sahne = new THREE.Scene();
|
|
32
|
+
sahne.background = new THREE.Color(0x87b7e0);
|
|
33
|
+
sahne.fog = new THREE.Fog(0x87b7e0, 80, 320);
|
|
34
|
+
const kamera = new THREE.PerspectiveCamera(62, innerWidth/innerHeight, 0.1, 1000);
|
|
35
|
+
const r = new THREE.WebGLRenderer({ antialias:true, powerPreference:"high-performance" });
|
|
36
|
+
r.setSize(innerWidth, innerHeight); r.setPixelRatio(Math.min(devicePixelRatio,2));
|
|
37
|
+
r.shadowMap.enabled = true; r.shadowMap.type = THREE.PCFSoftShadowMap;
|
|
38
|
+
document.body.appendChild(r.domElement);
|
|
39
|
+
|
|
40
|
+
sahne.add(new THREE.HemisphereLight(0xffffff, 0x4a5a40, 1.0));
|
|
41
|
+
const gunes = new THREE.DirectionalLight(0xfff2d8, 1.5);
|
|
42
|
+
gunes.position.set(60, 120, 40); gunes.castShadow = true;
|
|
43
|
+
gunes.shadow.mapSize.set(2048,2048); gunes.shadow.camera.left=-160; gunes.shadow.camera.right=160;
|
|
44
|
+
gunes.shadow.camera.top=160; gunes.shadow.camera.bottom=-160; sahne.add(gunes);
|
|
45
|
+
|
|
46
|
+
// --- Çim zemin ---
|
|
47
|
+
const cim = new THREE.Mesh(new THREE.PlaneGeometry(1000,1000), new THREE.MeshStandardMaterial({color:0x5a8f4a}));
|
|
48
|
+
cim.rotation.x = -Math.PI/2; cim.receiveShadow = true; sahne.add(cim);
|
|
49
|
+
|
|
50
|
+
// --- Oval pist (asfalt halka, X'te esnetilmiş) ---
|
|
51
|
+
const RIN=46, ROUT=66, ESNEK=1.55; // iç/dış yarıçap, X esnetme
|
|
52
|
+
const pist = new THREE.Mesh(new THREE.RingGeometry(RIN, ROUT, 96),
|
|
53
|
+
new THREE.MeshStandardMaterial({color:0x2b2b33, roughness:0.95}));
|
|
54
|
+
pist.rotation.x = -Math.PI/2; pist.scale.set(ESNEK,1,1); pist.position.y=0.02; pist.receiveShadow=true; sahne.add(pist);
|
|
55
|
+
// kurb (iç/dış kenar, kırmızı-beyaz hissi için koyu kenar şerit)
|
|
56
|
+
for (const [rad,ren] of [[RIN,0xcc3333],[ROUT,0xdddddd]]) {
|
|
57
|
+
const k=new THREE.Mesh(new THREE.RingGeometry(rad-0.6,rad+0.6,96), new THREE.MeshStandardMaterial({color:ren}));
|
|
58
|
+
k.rotation.x=-Math.PI/2; k.scale.set(ESNEK,1,1); k.position.y=0.03; sahne.add(k);
|
|
59
|
+
}
|
|
60
|
+
// pist orta çizgisi (yarıçap) ve zemin sürtünme testi için yardımcı
|
|
61
|
+
const RMID=(RIN+ROUT)/2, GEN=(ROUT-RIN)/2;
|
|
62
|
+
function pisttemi(x,z){ // nokta asfaltta mı (oval halka içinde mi)
|
|
63
|
+
const d=Math.hypot(x/ESNEK, z); return Math.abs(d-RMID) < GEN-1.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// --- Araba (gövde + kabin + 4 tekerlek) ---
|
|
67
|
+
const arac = new THREE.Group();
|
|
68
|
+
const govde = new THREE.Mesh(new THREE.BoxGeometry(2.0,0.6,4.0), new THREE.MeshStandardMaterial({color:0xe23b55,metalness:0.3,roughness:0.4}));
|
|
69
|
+
govde.position.y=0.6; govde.castShadow=true; arac.add(govde);
|
|
70
|
+
const kabin = new THREE.Mesh(new THREE.BoxGeometry(1.5,0.5,1.8), new THREE.MeshStandardMaterial({color:0x222233,metalness:0.2,roughness:0.3}));
|
|
71
|
+
kabin.position.set(0,1.05,-0.2); kabin.castShadow=true; arac.add(kabin);
|
|
72
|
+
for (const [tx,tz] of [[-1,1.3],[1,1.3],[-1,-1.3],[1,-1.3]]) {
|
|
73
|
+
const t=new THREE.Mesh(new THREE.CylinderGeometry(0.5,0.5,0.4,16), new THREE.MeshStandardMaterial({color:0x111111}));
|
|
74
|
+
t.rotation.z=Math.PI/2; t.position.set(tx,0.5,tz); t.castShadow=true; arac.add(t);
|
|
75
|
+
}
|
|
76
|
+
sahne.add(arac);
|
|
77
|
+
|
|
78
|
+
// --- Durum / fizik ---
|
|
79
|
+
const S = { x:RMID, z:0, yon:0, hiz:0, yanHiz:0 }; // başlangıç: pistin sağ orta noktası
|
|
80
|
+
function sifirla(){ S.x=RMID*ESNEK; S.z=0; S.yon=0; S.hiz=0; S.yanHiz=0; tur=1; turBaslangic=performance.now(); cp=0; }
|
|
81
|
+
const P = { motor:30, fren:46, surt:1.1, ileriMax:58, geriMax:-13, donus:2.5, tutus:3.2 };
|
|
82
|
+
|
|
83
|
+
const tus = {};
|
|
84
|
+
addEventListener("keydown", e=>{ tus[e.key.toLowerCase()]=true; if(["arrowup","arrowdown","arrowleft","arrowright"," "].includes(e.key.toLowerCase()))e.preventDefault(); if(e.key.toLowerCase()==="r")sifirla(); }, {passive:false});
|
|
85
|
+
addEventListener("keyup", e=>{ tus[e.key.toLowerCase()]=false; });
|
|
86
|
+
const bas = (a,b)=> tus[a]||tus[b];
|
|
87
|
+
|
|
88
|
+
// --- Tur / checkpoint (4 bölge; sırayla geçince tur) ---
|
|
89
|
+
let tur=1, enIyi=null, turBaslangic=performance.now(), cp=0;
|
|
90
|
+
const CPS=[ {a:0}, {a:Math.PI/2}, {a:Math.PI}, {a:3*Math.PI/2} ]; // açı bölgeleri
|
|
91
|
+
function turKontrol(){
|
|
92
|
+
const aci=(Math.atan2(S.z, S.x/ESNEK)+Math.PI*2)%(Math.PI*2);
|
|
93
|
+
const hedef=CPS[cp].a;
|
|
94
|
+
if (Math.abs(((aci-hedef+Math.PI)%(Math.PI*2))-Math.PI) < 0.4) {
|
|
95
|
+
cp=(cp+1)%CPS.length;
|
|
96
|
+
if (cp===1 && S.x>0) { // başlangıç/bitiş çizgisini (sağ orta) geçti
|
|
97
|
+
const sure=(performance.now()-turBaslangic)/1000;
|
|
98
|
+
if (tur>1 && (enIyi===null || sure<enIyi)) enIyi=sure;
|
|
99
|
+
tur++; turBaslangic=performance.now();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// --- Geri sayım ---
|
|
105
|
+
let kilit=true, gs=3; const orta=document.getElementById("orta");
|
|
106
|
+
(function sayim(){ orta.textContent=gs>0?gs:"BAŞLA!"; if(gs<=0){ setTimeout(()=>orta.textContent="",700); kilit=false; turBaslangic=performance.now(); return;} gs--; setTimeout(sayim,800); })();
|
|
107
|
+
|
|
108
|
+
addEventListener("resize", ()=>{ kamera.aspect=innerWidth/innerHeight; kamera.updateProjectionMatrix(); r.setSize(innerWidth,innerHeight); });
|
|
109
|
+
let duraklat=false; document.addEventListener("visibilitychange", ()=>{ duraklat=document.hidden; });
|
|
110
|
+
|
|
111
|
+
const hudHiz=document.getElementById("hiz"), hudTur=document.getElementById("tur");
|
|
112
|
+
let son=performance.now();
|
|
113
|
+
function dongu(now){
|
|
114
|
+
requestAnimationFrame(dongu);
|
|
115
|
+
let dt=Math.min(0.04,(now-son)/1000); son=now;
|
|
116
|
+
if (duraklat) return;
|
|
117
|
+
|
|
118
|
+
if (!kilit) {
|
|
119
|
+
const gaz=bas("arrowup","w"), fren=bas("arrowdown","s");
|
|
120
|
+
const dir=(bas("arrowleft","a")?1:0)-(bas("arrowright","d")?1:0);
|
|
121
|
+
const el=tus[" "];
|
|
122
|
+
const asf=pisttemi(S.x,S.z);
|
|
123
|
+
const surt=asf?P.surt:P.surt*5; // çimde yavaşla
|
|
124
|
+
let ivme = gaz?P.motor : (fren? -P.fren : -surt*S.hiz*0.3);
|
|
125
|
+
S.hiz += ivme*dt; S.hiz=Math.max(P.geriMax, Math.min(asf?P.ileriMax:P.ileriMax*0.5, S.hiz));
|
|
126
|
+
S.yon += dir*P.donus*(Math.abs(S.hiz)/P.ileriMax)*dt*(S.hiz<0?-1:1);
|
|
127
|
+
const tutus = el?0.7:P.tutus;
|
|
128
|
+
S.yanHiz += (-Math.sin(dir)*0)*dt; if(el && Math.abs(S.hiz)>8) S.yanHiz += dir*8*dt; // el freni drift
|
|
129
|
+
S.yanHiz += (0-S.yanHiz)*Math.min(1,tutus*dt);
|
|
130
|
+
S.x += (Math.sin(S.yon)*S.hiz + Math.cos(S.yon)*S.yanHiz)*dt;
|
|
131
|
+
S.z += (Math.cos(S.yon)*S.hiz - Math.sin(S.yon)*S.yanHiz)*dt;
|
|
132
|
+
turKontrol();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
arac.position.set(S.x,0,S.z); arac.rotation.y=S.yon;
|
|
136
|
+
// takip kamerası
|
|
137
|
+
const geri=new THREE.Vector3(Math.sin(S.yon),0,Math.cos(S.yon));
|
|
138
|
+
const hedef=new THREE.Vector3(S.x,0,S.z).addScaledVector(geri,-11).add(new THREE.Vector3(0,5,0));
|
|
139
|
+
kamera.position.lerp(hedef, Math.min(1,dt*4));
|
|
140
|
+
kamera.lookAt(S.x+geri.x*6, 1.2, S.z+geri.z*6);
|
|
141
|
+
|
|
142
|
+
hudHiz.innerHTML=Math.round(Math.abs(S.hiz)*3.2)+'<small> km/s</small>';
|
|
143
|
+
hudTur.innerHTML=`Tur ${tur}<br>Süre ${((now-turBaslangic)/1000).toFixed(1)}<br>En iyi ${enIyi?enIyi.toFixed(1):"—"}`;
|
|
144
|
+
r.render(sahne,kamera);
|
|
145
|
+
}
|
|
146
|
+
sifirla(); requestAnimationFrame(dongu);
|
|
147
|
+
</script>
|
|
148
|
+
</body>
|
|
149
|
+
</html>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="tr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
|
+
<title>Sera Oyun (saf tuval)</title>
|
|
7
|
+
<style>
|
|
8
|
+
html,body{margin:0;height:100%;background:#0b0f1a;overflow:hidden;font-family:system-ui,sans-serif}
|
|
9
|
+
body{display:grid;place-items:center}
|
|
10
|
+
canvas{display:block;max-width:100vw;max-height:100vh;touch-action:manipulation}
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<canvas id="c" width="960" height="540"></canvas>
|
|
15
|
+
<script>
|
|
16
|
+
/* SERA SAF-TUVAL ŞABLONU — quiz / basit oyun. Bağımlılık yok.
|
|
17
|
+
Örnek: tıkla-topla. Sera: soru-şık (quiz) ya da başka basit mekaniğe çevir. */
|
|
18
|
+
const cv = document.getElementById("c"), x = cv.getContext("2d");
|
|
19
|
+
const W = cv.width, H = cv.height;
|
|
20
|
+
let skor = 0, sure = 30, bitti = false, durdur = false, son = performance.now();
|
|
21
|
+
let hedef = yeniHedef();
|
|
22
|
+
|
|
23
|
+
// Ölçek: canvas her ekrana sığsın, bozulmadan
|
|
24
|
+
function olcekle(){ const o=Math.min(innerWidth/W, innerHeight/H); cv.style.width=(W*o)+"px"; cv.style.height=(H*o)+"px"; }
|
|
25
|
+
addEventListener("resize", olcekle); olcekle();
|
|
26
|
+
|
|
27
|
+
function yeniHedef(){ return { x: 80+Math.random()*(W-160), y: 120+Math.random()*(H-200), r: 34, t: 0 }; }
|
|
28
|
+
|
|
29
|
+
// Girdi: canvas koordinatına çevir
|
|
30
|
+
cv.addEventListener("pointerdown", (e)=>{
|
|
31
|
+
if(bitti){ skor=0; sure=30; bitti=false; hedef=yeniHedef(); return; }
|
|
32
|
+
const rect = cv.getBoundingClientRect();
|
|
33
|
+
const px = (e.clientX-rect.left)/rect.width*W, py = (e.clientY-rect.top)/rect.height*H;
|
|
34
|
+
if(Math.hypot(px-hedef.x, py-hedef.y) < hedef.r+6){ skor++; patla(hedef.x,hedef.y); hedef=yeniHedef(); }
|
|
35
|
+
});
|
|
36
|
+
addEventListener("keydown", (e)=>{ if(e.key==="p"||e.key==="P") durdur=!durdur; });
|
|
37
|
+
document.addEventListener("visibilitychange", ()=>{ if(document.hidden) durdur=true; });
|
|
38
|
+
|
|
39
|
+
// Parçacık juice
|
|
40
|
+
const prc=[];
|
|
41
|
+
function patla(px,py){ for(let i=0;i<14;i++){ const a=Math.random()*6.28, h=60+Math.random()*180; prc.push({x:px,y:py,vx:Math.cos(a)*h,vy:Math.sin(a)*h,o:1,r:2+Math.random()*3}); } }
|
|
42
|
+
|
|
43
|
+
function gradyan(){ const g=x.createLinearGradient(0,0,0,H); g.addColorStop(0,"#12162a"); g.addColorStop(1,"#281a40"); x.fillStyle=g; x.fillRect(0,0,W,H); }
|
|
44
|
+
function parlakDaire(px,py,r,renk){ // katmanlı: hale+gövde+vurgu
|
|
45
|
+
x.save();
|
|
46
|
+
x.globalAlpha=0.2; x.fillStyle=renk; x.beginPath(); x.arc(px,py,r*1.4,0,6.28); x.fill();
|
|
47
|
+
x.globalAlpha=1; x.beginPath(); x.arc(px,py,r,0,6.28); x.fill();
|
|
48
|
+
x.globalAlpha=0.7; x.fillStyle="#fff"; x.beginPath(); x.arc(px-r*0.3,py-r*0.35,r*0.28,0,6.28); x.fill();
|
|
49
|
+
x.restore();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function dongu(now){
|
|
53
|
+
const dt = Math.min(0.05,(now-son)/1000); son=now;
|
|
54
|
+
requestAnimationFrame(dongu);
|
|
55
|
+
if(!durdur && !bitti){ sure-=dt; if(sure<=0){ sure=0; bitti=true; } }
|
|
56
|
+
// çiz
|
|
57
|
+
gradyan();
|
|
58
|
+
if(!bitti){
|
|
59
|
+
hedef.t+=dt; const puls = hedef.r + Math.sin(hedef.t*5)*3; // boşta nabız
|
|
60
|
+
parlakDaire(hedef.x,hedef.y,puls,"#6bcb77");
|
|
61
|
+
}
|
|
62
|
+
for(let i=prc.length-1;i>=0;i--){ const p=prc[i]; p.x+=p.vx*dt; p.y+=p.vy*dt; p.vx*=0.92; p.vy*=0.92; p.o-=dt*1.6;
|
|
63
|
+
if(p.o<=0){ prc.splice(i,1); continue; } x.globalAlpha=p.o; x.fillStyle="#b5e48c"; x.beginPath(); x.arc(p.x,p.y,p.r,0,6.28); x.fill(); x.globalAlpha=1; }
|
|
64
|
+
// HUD
|
|
65
|
+
x.fillStyle="#f6f7eb"; x.font="bold 28px system-ui"; x.textAlign="left"; x.fillText("Skor "+skor, 20, 40);
|
|
66
|
+
x.textAlign="right"; x.fillText("Süre "+Math.ceil(sure), W-20, 40);
|
|
67
|
+
x.textAlign="center"; x.globalAlpha=0.6; x.font="18px system-ui"; x.fillText("Daireye dokun · P duraklat", W/2, H-24); x.globalAlpha=1;
|
|
68
|
+
if(durdur && !bitti){ ortaYazi("DURAKLADI", "P ile devam"); }
|
|
69
|
+
if(bitti){ ortaYazi("SÜRE BİTTİ — Skor "+skor, "Dokun: yeniden"); }
|
|
70
|
+
}
|
|
71
|
+
function ortaYazi(a,b){ x.fillStyle="rgba(0,0,0,.5)"; x.fillRect(0,0,W,H); x.fillStyle="#f6f7eb"; x.textAlign="center";
|
|
72
|
+
x.font="bold 48px system-ui"; x.fillText(a, W/2, H/2-10); x.font="24px system-ui"; x.globalAlpha=0.9; x.fillText(b, W/2, H/2+40); x.globalAlpha=1; }
|
|
73
|
+
|
|
74
|
+
requestAnimationFrame(dongu);
|
|
75
|
+
</script>
|
|
76
|
+
</body>
|
|
77
|
+
</html>
|
|
@@ -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,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: receiving-code-review
|
|
3
|
+
description: "Gelen inceleme yorumlarını körü körüne değil doğrulayarak uygula."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review Reception
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Code review requires technical evaluation, not emotional performance.
|
|
11
|
+
|
|
12
|
+
**Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
|
|
13
|
+
|
|
14
|
+
## The Response Pattern
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
WHEN receiving code review feedback:
|
|
18
|
+
|
|
19
|
+
1. READ: Complete feedback without reacting
|
|
20
|
+
2. UNDERSTAND: Restate requirement in own words (or ask)
|
|
21
|
+
3. VERIFY: Check against codebase reality
|
|
22
|
+
4. EVALUATE: Technically sound for THIS codebase?
|
|
23
|
+
5. RESPOND: Technical acknowledgment or reasoned pushback
|
|
24
|
+
6. IMPLEMENT: One item at a time, test each
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Forbidden Responses
|
|
28
|
+
|
|
29
|
+
**NEVER:**
|
|
30
|
+
- "You're absolutely right!" (explicit instruction-file violation)
|
|
31
|
+
- "Great point!" / "Excellent feedback!" (performative)
|
|
32
|
+
- "Let me implement that now" (before verification)
|
|
33
|
+
|
|
34
|
+
**INSTEAD:**
|
|
35
|
+
- Restate the technical requirement
|
|
36
|
+
- Ask clarifying questions
|
|
37
|
+
- Push back with technical reasoning if wrong
|
|
38
|
+
- Just start working (actions > words)
|
|
39
|
+
|
|
40
|
+
## Handling Unclear Feedback
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
IF any item is unclear:
|
|
44
|
+
STOP - do not implement anything yet
|
|
45
|
+
ASK for clarification on unclear items
|
|
46
|
+
|
|
47
|
+
WHY: Items may be related. Partial understanding = wrong implementation.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Example:**
|
|
51
|
+
```
|
|
52
|
+
your human partner: "Fix 1-6"
|
|
53
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
54
|
+
|
|
55
|
+
❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
|
|
56
|
+
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Source-Specific Handling
|
|
60
|
+
|
|
61
|
+
### From your human partner
|
|
62
|
+
- **Trusted** - implement after understanding
|
|
63
|
+
- **Still ask** if scope unclear
|
|
64
|
+
- **No performative agreement**
|
|
65
|
+
- **Skip to action** or technical acknowledgment
|
|
66
|
+
|
|
67
|
+
### From External Reviewers
|
|
68
|
+
```
|
|
69
|
+
BEFORE implementing:
|
|
70
|
+
1. Check: Technically correct for THIS codebase?
|
|
71
|
+
2. Check: Breaks existing functionality?
|
|
72
|
+
3. Check: Reason for current implementation?
|
|
73
|
+
4. Check: Works on all platforms/versions?
|
|
74
|
+
5. Check: Does reviewer understand full context?
|
|
75
|
+
|
|
76
|
+
IF suggestion seems wrong:
|
|
77
|
+
Push back with technical reasoning
|
|
78
|
+
|
|
79
|
+
IF can't easily verify:
|
|
80
|
+
Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
|
|
81
|
+
|
|
82
|
+
IF conflicts with your human partner's prior decisions:
|
|
83
|
+
Stop and discuss with your human partner first
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**your human partner's rule:** "External feedback - be skeptical, but check carefully"
|
|
87
|
+
|
|
88
|
+
## YAGNI Check for "Professional" Features
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
IF reviewer suggests "implementing properly":
|
|
92
|
+
grep codebase for actual usage
|
|
93
|
+
|
|
94
|
+
IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
|
|
95
|
+
IF used: Then implement properly
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
|
|
99
|
+
|
|
100
|
+
## Implementation Order
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
FOR multi-item feedback:
|
|
104
|
+
1. Clarify anything unclear FIRST
|
|
105
|
+
2. Then implement in this order:
|
|
106
|
+
- Blocking issues (breaks, security)
|
|
107
|
+
- Simple fixes (typos, imports)
|
|
108
|
+
- Complex fixes (refactoring, logic)
|
|
109
|
+
3. Test each fix individually
|
|
110
|
+
4. Verify no regressions
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## When To Push Back
|
|
114
|
+
|
|
115
|
+
Push back when:
|
|
116
|
+
- Suggestion breaks existing functionality
|
|
117
|
+
- Reviewer lacks full context
|
|
118
|
+
- Violates YAGNI (unused feature)
|
|
119
|
+
- Technically incorrect for this stack
|
|
120
|
+
- Legacy/compatibility reasons exist
|
|
121
|
+
- Conflicts with your human partner's architectural decisions
|
|
122
|
+
|
|
123
|
+
**How to push back:**
|
|
124
|
+
- Use technical reasoning, not defensiveness
|
|
125
|
+
- Ask specific questions
|
|
126
|
+
- Reference working tests/code
|
|
127
|
+
- Involve your human partner if architectural
|
|
128
|
+
|
|
129
|
+
**If you're uncomfortable pushing back out loud:** Name that tension, then tell your partner about the issue you've seen. They'll appreciate your honesty.
|
|
130
|
+
|
|
131
|
+
## Acknowledging Correct Feedback
|
|
132
|
+
|
|
133
|
+
When feedback IS correct:
|
|
134
|
+
```
|
|
135
|
+
✅ "Fixed. [Brief description of what changed]"
|
|
136
|
+
✅ "Good catch - [specific issue]. Fixed in [location]."
|
|
137
|
+
✅ [Just fix it and show in the code]
|
|
138
|
+
|
|
139
|
+
❌ "You're absolutely right!"
|
|
140
|
+
❌ "Great point!"
|
|
141
|
+
❌ "Thanks for catching that!"
|
|
142
|
+
❌ "Thanks for [anything]"
|
|
143
|
+
❌ ANY gratitude expression
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
|
|
147
|
+
|
|
148
|
+
**If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
|
|
149
|
+
|
|
150
|
+
## Gracefully Correcting Your Pushback
|
|
151
|
+
|
|
152
|
+
If you pushed back and were wrong:
|
|
153
|
+
```
|
|
154
|
+
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
|
|
155
|
+
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
|
|
156
|
+
|
|
157
|
+
❌ Long apology
|
|
158
|
+
❌ Defending why you pushed back
|
|
159
|
+
❌ Over-explaining
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
State the correction factually and move on.
|
|
163
|
+
|
|
164
|
+
## Common Mistakes
|
|
165
|
+
|
|
166
|
+
| Mistake | Fix |
|
|
167
|
+
|---------|-----|
|
|
168
|
+
| Performative agreement | State requirement or just act |
|
|
169
|
+
| Blind implementation | Verify against codebase first |
|
|
170
|
+
| Batch without testing | One at a time, test each |
|
|
171
|
+
| Assuming reviewer is right | Check if breaks things |
|
|
172
|
+
| Avoiding pushback | Technical correctness > comfort |
|
|
173
|
+
| Partial implementation | Clarify all items first |
|
|
174
|
+
| Can't verify, proceed anyway | State limitation, ask for direction |
|
|
175
|
+
|
|
176
|
+
## Real Examples
|
|
177
|
+
|
|
178
|
+
**Performative Agreement (Bad):**
|
|
179
|
+
```
|
|
180
|
+
Reviewer: "Remove legacy code"
|
|
181
|
+
❌ "You're absolutely right! Let me remove that..."
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**Technical Verification (Good):**
|
|
185
|
+
```
|
|
186
|
+
Reviewer: "Remove legacy code"
|
|
187
|
+
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**YAGNI (Good):**
|
|
191
|
+
```
|
|
192
|
+
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
|
|
193
|
+
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Unclear Item (Good):**
|
|
197
|
+
```
|
|
198
|
+
your human partner: "Fix items 1-6"
|
|
199
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
200
|
+
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## GitHub Thread Replies
|
|
204
|
+
|
|
205
|
+
When replying to inline review comments on GitHub, reply in the comment thread (`gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies`), not as a top-level PR comment.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Refero
|
|
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.
|