c64-kb 0.17.0
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/CHANGELOG.md +2082 -0
- package/LICENSE +29 -0
- package/README.md +559 -0
- package/VERSION +25 -0
- package/dist/cli/setup.js +66 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli-memorize-audit.js +97 -0
- package/dist/cli-memorize-audit.js.map +1 -0
- package/dist/cli.js +335 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.js +83 -0
- package/dist/config.js.map +1 -0
- package/dist/context.js +53 -0
- package/dist/context.js.map +1 -0
- package/dist/domain/budget-notes.js +104 -0
- package/dist/domain/budget-notes.js.map +1 -0
- package/dist/domain/budget.js +417 -0
- package/dist/domain/budget.js.map +1 -0
- package/dist/domain/game-design.js +77 -0
- package/dist/domain/game-design.js.map +1 -0
- package/dist/domain/timing.js +39 -0
- package/dist/domain/timing.js.map +1 -0
- package/dist/graph/apply.js +132 -0
- package/dist/graph/apply.js.map +1 -0
- package/dist/graph/claims.js +231 -0
- package/dist/graph/claims.js.map +1 -0
- package/dist/graph/extract/archetype.js +118 -0
- package/dist/graph/extract/archetype.js.map +1 -0
- package/dist/graph/extract/common.js +69 -0
- package/dist/graph/extract/common.js.map +1 -0
- package/dist/graph/extract/failure.js +37 -0
- package/dist/graph/extract/failure.js.map +1 -0
- package/dist/graph/extract/game-design.js +189 -0
- package/dist/graph/extract/game-design.js.map +1 -0
- package/dist/graph/extract/hardware.js +124 -0
- package/dist/graph/extract/hardware.js.map +1 -0
- package/dist/graph/extract/pitfall.js +62 -0
- package/dist/graph/extract/pitfall.js.map +1 -0
- package/dist/graph/extract/raster-band.js +56 -0
- package/dist/graph/extract/raster-band.js.map +1 -0
- package/dist/graph/extract/recipe.js +71 -0
- package/dist/graph/extract/recipe.js.map +1 -0
- package/dist/graph/extract/technique-entities.js +180 -0
- package/dist/graph/extract/technique-entities.js.map +1 -0
- package/dist/graph/extract/technique.js +179 -0
- package/dist/graph/extract/technique.js.map +1 -0
- package/dist/graph/extract/toolchain.js +67 -0
- package/dist/graph/extract/toolchain.js.map +1 -0
- package/dist/graph/extract/types.js +3 -0
- package/dist/graph/extract/types.js.map +1 -0
- package/dist/graph/extract/vocabulary.js +65 -0
- package/dist/graph/extract/vocabulary.js.map +1 -0
- package/dist/graph/extract.js +43 -0
- package/dist/graph/extract.js.map +1 -0
- package/dist/graph/kernal-clobbers.js +64 -0
- package/dist/graph/kernal-clobbers.js.map +1 -0
- package/dist/graph/machine-variants.js +208 -0
- package/dist/graph/machine-variants.js.map +1 -0
- package/dist/ingest/files.js +99 -0
- package/dist/ingest/files.js.map +1 -0
- package/dist/ingest/passes.js +104 -0
- package/dist/ingest/passes.js.map +1 -0
- package/dist/ingest/points.js +50 -0
- package/dist/ingest/points.js.map +1 -0
- package/dist/ingest/report.js +140 -0
- package/dist/ingest/report.js.map +1 -0
- package/dist/ingest/tally.js +81 -0
- package/dist/ingest/tally.js.map +1 -0
- package/dist/ingest/verified-on.js +43 -0
- package/dist/ingest/verified-on.js.map +1 -0
- package/dist/ingest.js +135 -0
- package/dist/ingest.js.map +1 -0
- package/dist/schemas/cost-basis.js +5 -0
- package/dist/schemas/cost-basis.js.map +1 -0
- package/dist/schemas/machine-variant.js +25 -0
- package/dist/schemas/machine-variant.js.map +1 -0
- package/dist/schemas/plan-budget.js +121 -0
- package/dist/schemas/plan-budget.js.map +1 -0
- package/dist/schemas/tool-outputs.js +526 -0
- package/dist/schemas/tool-outputs.js.map +1 -0
- package/dist/server/define-tool.js +52 -0
- package/dist/server/define-tool.js.map +1 -0
- package/dist/server/defined-only.js +9 -0
- package/dist/server/defined-only.js.map +1 -0
- package/dist/server/tools-briefings.js +70 -0
- package/dist/server/tools-briefings.js.map +1 -0
- package/dist/server/tools-lookup.js +180 -0
- package/dist/server/tools-lookup.js.map +1 -0
- package/dist/server/tools-maintenance.js +116 -0
- package/dist/server/tools-maintenance.js.map +1 -0
- package/dist/server/tools-pitfalls.js +89 -0
- package/dist/server/tools-pitfalls.js.map +1 -0
- package/dist/server/tools-recipes.js +296 -0
- package/dist/server/tools-recipes.js.map +1 -0
- package/dist/server/tools-runtime.js +48 -0
- package/dist/server/tools-runtime.js.map +1 -0
- package/dist/server/tools.js +43 -0
- package/dist/server/tools.js.map +1 -0
- package/dist/server.js +95 -0
- package/dist/server.js.map +1 -0
- package/dist/services/analytics/schema.js +78 -0
- package/dist/services/analytics/schema.js.map +1 -0
- package/dist/services/analytics/statements.js +99 -0
- package/dist/services/analytics/statements.js.map +1 -0
- package/dist/services/analytics.js +195 -0
- package/dist/services/analytics.js.map +1 -0
- package/dist/services/bm25.js +158 -0
- package/dist/services/bm25.js.map +1 -0
- package/dist/services/chunker.js +81 -0
- package/dist/services/chunker.js.map +1 -0
- package/dist/services/embeddings.js +58 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/falkor/base.js +85 -0
- package/dist/services/falkor/base.js.map +1 -0
- package/dist/services/falkor/links.js +361 -0
- package/dist/services/falkor/links.js.map +1 -0
- package/dist/services/falkor/nodes.js +183 -0
- package/dist/services/falkor/nodes.js.map +1 -0
- package/dist/services/falkor/params.js +45 -0
- package/dist/services/falkor/params.js.map +1 -0
- package/dist/services/falkor/schema.js +77 -0
- package/dist/services/falkor/schema.js.map +1 -0
- package/dist/services/falkor.js +100 -0
- package/dist/services/falkor.js.map +1 -0
- package/dist/services/qdrant.js +238 -0
- package/dist/services/qdrant.js.map +1 -0
- package/dist/services/versions.js +73 -0
- package/dist/services/versions.js.map +1 -0
- package/dist/services/vice-bin.js +51 -0
- package/dist/services/vice-bin.js.map +1 -0
- package/dist/tools/briefings/archetype.js +174 -0
- package/dist/tools/briefings/archetype.js.map +1 -0
- package/dist/tools/briefings/budget.js +177 -0
- package/dist/tools/briefings/budget.js.map +1 -0
- package/dist/tools/briefings/build-order.js +135 -0
- package/dist/tools/briefings/build-order.js.map +1 -0
- package/dist/tools/briefings/build.js +185 -0
- package/dist/tools/briefings/build.js.map +1 -0
- package/dist/tools/briefings/discovery.js +290 -0
- package/dist/tools/briefings/discovery.js.map +1 -0
- package/dist/tools/briefings/plan-pitfalls.js +69 -0
- package/dist/tools/briefings/plan-pitfalls.js.map +1 -0
- package/dist/tools/briefings/render.js +151 -0
- package/dist/tools/briefings/render.js.map +1 -0
- package/dist/tools/briefings/rows.js +41 -0
- package/dist/tools/briefings/rows.js.map +1 -0
- package/dist/tools/briefings/toolchain.js +63 -0
- package/dist/tools/briefings/toolchain.js.map +1 -0
- package/dist/tools/briefings/why-proposed.js +69 -0
- package/dist/tools/briefings/why-proposed.js.map +1 -0
- package/dist/tools/briefings.js +44 -0
- package/dist/tools/briefings.js.map +1 -0
- package/dist/tools/feedback.js +97 -0
- package/dist/tools/feedback.js.map +1 -0
- package/dist/tools/hydrate.js +75 -0
- package/dist/tools/hydrate.js.map +1 -0
- package/dist/tools/intelligence.js +67 -0
- package/dist/tools/intelligence.js.map +1 -0
- package/dist/tools/lint/asm-decimal.js +86 -0
- package/dist/tools/lint/asm-decimal.js.map +1 -0
- package/dist/tools/lint/asm-rules.js +221 -0
- package/dist/tools/lint/asm-rules.js.map +1 -0
- package/dist/tools/lint/asm-shared.js +3 -0
- package/dist/tools/lint/asm-shared.js.map +1 -0
- package/dist/tools/lint/c-rules.js +215 -0
- package/dist/tools/lint/c-rules.js.map +1 -0
- package/dist/tools/lint/text.js +122 -0
- package/dist/tools/lint/text.js.map +1 -0
- package/dist/tools/lint/types.js +40 -0
- package/dist/tools/lint/types.js.map +1 -0
- package/dist/tools/lint.js +76 -0
- package/dist/tools/lint.js.map +1 -0
- package/dist/tools/memorization-mcp.js +111 -0
- package/dist/tools/memorization-mcp.js.map +1 -0
- package/dist/tools/pitfalls/bm25.js +53 -0
- package/dist/tools/pitfalls/bm25.js.map +1 -0
- package/dist/tools/pitfalls/format.js +58 -0
- package/dist/tools/pitfalls/format.js.map +1 -0
- package/dist/tools/pitfalls/graph.js +124 -0
- package/dist/tools/pitfalls/graph.js.map +1 -0
- package/dist/tools/pitfalls.js +134 -0
- package/dist/tools/pitfalls.js.map +1 -0
- package/dist/tools/prompts.js +81 -0
- package/dist/tools/prompts.js.map +1 -0
- package/dist/tools/query/compatibility/closure.js +62 -0
- package/dist/tools/query/compatibility/closure.js.map +1 -0
- package/dist/tools/query/compatibility/facts.js +28 -0
- package/dist/tools/query/compatibility/facts.js.map +1 -0
- package/dist/tools/query/compatibility/fetch.js +164 -0
- package/dist/tools/query/compatibility/fetch.js.map +1 -0
- package/dist/tools/query/compatibility/hard-rules.js +159 -0
- package/dist/tools/query/compatibility/hard-rules.js.map +1 -0
- package/dist/tools/query/compatibility/index.js +27 -0
- package/dist/tools/query/compatibility/index.js.map +1 -0
- package/dist/tools/query/compatibility/kernal-zp-rule.js +90 -0
- package/dist/tools/query/compatibility/kernal-zp-rule.js.map +1 -0
- package/dist/tools/query/compatibility/render.js +106 -0
- package/dist/tools/query/compatibility/render.js.map +1 -0
- package/dist/tools/query/compatibility/rules.js +337 -0
- package/dist/tools/query/compatibility/rules.js.map +1 -0
- package/dist/tools/query/compatibility/unit-rules.js +253 -0
- package/dist/tools/query/compatibility/unit-rules.js.map +1 -0
- package/dist/tools/query/game-design.js +83 -0
- package/dist/tools/query/game-design.js.map +1 -0
- package/dist/tools/query/lookups.js +220 -0
- package/dist/tools/query/lookups.js.map +1 -0
- package/dist/tools/query/plan-budget.js +266 -0
- package/dist/tools/query/plan-budget.js.map +1 -0
- package/dist/tools/query/recipes.js +214 -0
- package/dist/tools/query/recipes.js.map +1 -0
- package/dist/tools/query/retrieval.js +128 -0
- package/dist/tools/query/retrieval.js.map +1 -0
- package/dist/tools/query/shared.js +121 -0
- package/dist/tools/query/shared.js.map +1 -0
- package/dist/tools/query/techniques.js +331 -0
- package/dist/tools/query/techniques.js.map +1 -0
- package/dist/tools/query/timing.js +106 -0
- package/dist/tools/query/timing.js.map +1 -0
- package/dist/tools/query/types.js +11 -0
- package/dist/tools/query/types.js.map +1 -0
- package/dist/tools/query.js +21 -0
- package/dist/tools/query.js.map +1 -0
- package/dist/tools/resources.js +186 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/run-game.js +249 -0
- package/dist/tools/run-game.js.map +1 -0
- package/dist/tools/selfimprovement.js +367 -0
- package/dist/tools/selfimprovement.js.map +1 -0
- package/docker-compose.yml +35 -0
- package/docs/ARCHITECTURE.md +164 -0
- package/docs/CONVENTIONS-archetypes.md +158 -0
- package/docs/CONVENTIONS-failures.md +46 -0
- package/docs/CONVENTIONS-game-designs.md +75 -0
- package/docs/CONVENTIONS-hardware-reference.md +184 -0
- package/docs/CONVENTIONS-pitfalls.md +91 -0
- package/docs/CONVENTIONS-recipes.md +106 -0
- package/docs/CONVENTIONS-techniques.md +309 -0
- package/docs/CONVENTIONS-toolchain-reference.md +89 -0
- package/docs/ONTOLOGY.md +655 -0
- package/docs/art/art-production-reference.md +157 -0
- package/docs/art/asset-pipelines.md +586 -0
- package/docs/c64-failure-patterns.md +693 -0
- package/docs/demo-design/demo-composition.md +349 -0
- package/docs/demo-design/demo-design-philosophy.md +320 -0
- package/docs/demo-design/intro-cracktro-patterns.md +435 -0
- package/docs/figures/ctm-spd-embed-probe.png +0 -0
- package/docs/figures/dot-flag-mid-5000000.png +0 -0
- package/docs/figures/dot-flag-no-erase-12000000.png +0 -0
- package/docs/figures/edges.json +1 -0
- package/docs/figures/fig6-architecture.png +0 -0
- package/docs/figures/fig7-ontology.png +0 -0
- package/docs/figures/screen-dissolve-mid-frame25.png +0 -0
- package/docs/figures/screen-dissolve-wipe-frame25.png +0 -0
- package/docs/figures/spindle-two-parts-part1.png +0 -0
- package/docs/figures/spindle-two-parts-part2.png +0 -0
- package/docs/figures/starters/action-puzzle.png +0 -0
- package/docs/figures/starters/adventure.png +0 -0
- package/docs/figures/starters/beat-em-up.png +0 -0
- package/docs/figures/starters/demo.png +0 -0
- package/docs/figures/starters/platformer.png +0 -0
- package/docs/figures/starters/shmup-vertical.png +0 -0
- package/docs/figures/tape-kernal-master-ntsc.png +0 -0
- package/docs/figures/tape-kernal-master-pal.png +0 -0
- package/docs/figures/tape-turbo-loader-ntsc.png +0 -0
- package/docs/figures/tape-turbo-loader-pal.png +0 -0
- package/docs/figures/tape-turbo-master-ntsc.png +0 -0
- package/docs/figures/tape-turbo-master-pal.png +0 -0
- package/docs/figures/tech-tech-pad2-12000000.png +0 -0
- package/docs/figures/tech-tech-pad4-12000000.png +0 -0
- package/docs/figures/tech-tech-seven-12000000.png +0 -0
- package/docs/figures/twister-mid-5000000.png +0 -0
- package/docs/figures/twister-straight-12000000.png +0 -0
- package/docs/figures/vector-balls-nosort-ntsc.png +0 -0
- package/docs/figures/vector-balls-nosort.png +0 -0
- package/docs/formats/c64-file-formats.md +1212 -0
- package/docs/formats/iec-disk-reference.md +754 -0
- package/docs/game-design/c64-game-archetypes.md +273 -0
- package/docs/game-design/designs/falling-blocks.md +54 -0
- package/docs/game-design/designs/platformer-scaffold.md +48 -0
- package/docs/game-design/designs/simple-shmup.md +27 -0
- package/docs/game-design/enemy-behaviour-and-difficulty.md +349 -0
- package/docs/game-design/game-design-patterns.md +1189 -0
- package/docs/game-design/game-structure.md +354 -0
- package/docs/game-design/production-planning.md +349 -0
- package/docs/game-design/reference-game-sources.md +90 -0
- package/docs/hardware/6502-illegal-opcodes.md +1353 -0
- package/docs/hardware/6510-cpu-reference.md +2112 -0
- package/docs/hardware/c64-memory-map.md +3184 -0
- package/docs/hardware/c64-registers-reference.md +996 -0
- package/docs/hardware/cia-reference.md +1281 -0
- package/docs/hardware/kernal-routines-reference.md +1836 -0
- package/docs/hardware/pal-ntsc-reference.md +813 -0
- package/docs/hardware/sid-reference.md +1137 -0
- package/docs/hardware/vic-ii-reference.md +1714 -0
- package/docs/music/music-production-reference.md +403 -0
- package/docs/pitfalls/banking.md +1067 -0
- package/docs/pitfalls/cia.md +1147 -0
- package/docs/pitfalls/cpu.md +874 -0
- package/docs/pitfalls/input.md +282 -0
- package/docs/pitfalls/kernal-and-io.md +1615 -0
- package/docs/pitfalls/loader.md +1191 -0
- package/docs/pitfalls/logic.md +94 -0
- package/docs/pitfalls/maths.md +187 -0
- package/docs/pitfalls/raster-and-badline.md +721 -0
- package/docs/pitfalls/region-timing.md +660 -0
- package/docs/pitfalls/scroll.md +207 -0
- package/docs/pitfalls/sid.md +738 -0
- package/docs/pitfalls/sprite.md +979 -0
- package/docs/pitfalls/text-mode-render.md +1172 -0
- package/docs/recipes/cc65/cartridge-8k.md +398 -0
- package/docs/recipes/cc65/hello-world-conio.md +76 -0
- package/docs/recipes/cc65/memory-layout.md +312 -0
- package/docs/recipes/cc65/screenshots/README.md +14 -0
- package/docs/recipes/cc65/screenshots/cartridge-8k-ntsc.png +0 -0
- package/docs/recipes/cc65/screenshots/cartridge-8k.png +0 -0
- package/docs/recipes/cc65/screenshots/hello-world-conio.png +0 -0
- package/docs/recipes/cc65/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/cc65/screenshots/memory-layout.png +0 -0
- package/docs/recipes/kickassembler/basic-float-calls.md +578 -0
- package/docs/recipes/kickassembler/basic-wedge.md +398 -0
- package/docs/recipes/kickassembler/big-font-scroller.md +620 -0
- package/docs/recipes/kickassembler/charset-copy-rom-to-ram.md +623 -0
- package/docs/recipes/kickassembler/cia-revision-detect.md +366 -0
- package/docs/recipes/kickassembler/colour-cycling.md +343 -0
- package/docs/recipes/kickassembler/colour-fade.md +303 -0
- package/docs/recipes/kickassembler/compare-16bit-signed.md +1007 -0
- package/docs/recipes/kickassembler/cracktro-template.md +526 -0
- package/docs/recipes/kickassembler/crt-banked.md +276 -0
- package/docs/recipes/kickassembler/dos-error-codes.md +466 -0
- package/docs/recipes/kickassembler/dot-flag.md +576 -0
- package/docs/recipes/kickassembler/drive-job-queue.md +667 -0
- package/docs/recipes/kickassembler/drive-via-probe.md +690 -0
- package/docs/recipes/kickassembler/dycp-scroller.md +568 -0
- package/docs/recipes/kickassembler/dypp-sprite-scroller.md +681 -0
- package/docs/recipes/kickassembler/dysp.md +670 -0
- package/docs/recipes/kickassembler/easyflash-save.md +800 -0
- package/docs/recipes/kickassembler/eight-way-scroll.md +1484 -0
- package/docs/recipes/kickassembler/file-io-roundtrip.md +546 -0
- package/docs/recipes/kickassembler/fire-effect.md +420 -0
- package/docs/recipes/kickassembler/fld.md +414 -0
- package/docs/recipes/kickassembler/fli-image.md +336 -0
- package/docs/recipes/kickassembler/four-player-read.md +672 -0
- package/docs/recipes/kickassembler/headless-verify.md +228 -0
- package/docs/recipes/kickassembler/hello-world.md +98 -0
- package/docs/recipes/kickassembler/high-score-insert.md +660 -0
- package/docs/recipes/kickassembler/hires-plot-line.md +723 -0
- package/docs/recipes/kickassembler/irq-chain.md +316 -0
- package/docs/recipes/kickassembler/irq-owns-port.md +668 -0
- package/docs/recipes/kickassembler/isometric-room.md +1145 -0
- package/docs/recipes/kickassembler/light-pen-read.md +926 -0
- package/docs/recipes/kickassembler/logic-rate-decoupling.md +670 -0
- package/docs/recipes/kickassembler/mci-interlace.md +543 -0
- package/docs/recipes/kickassembler/memory-layout.md +277 -0
- package/docs/recipes/kickassembler/mouse-1351-read.md +801 -0
- package/docs/recipes/kickassembler/nmi-timer-tick.md +562 -0
- package/docs/recipes/kickassembler/own-keyscan.md +881 -0
- package/docs/recipes/kickassembler/paddle-read.md +751 -0
- package/docs/recipes/kickassembler/palette-cells.md +219 -0
- package/docs/recipes/kickassembler/pseudo-3d-road.md +930 -0
- package/docs/recipes/kickassembler/pwm-digi.md +463 -0
- package/docs/recipes/kickassembler/raster-bars.md +264 -0
- package/docs/recipes/kickassembler/reu-dma.md +1019 -0
- package/docs/recipes/kickassembler/runtime-relocation.md +743 -0
- package/docs/recipes/kickassembler/screen-dissolve.md +545 -0
- package/docs/recipes/kickassembler/screen-wipe.md +408 -0
- package/docs/recipes/kickassembler/screenshots/README.md +72 -0
- package/docs/recipes/kickassembler/screenshots/basic-float-calls-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-float-calls.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-wedge-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-wedge.png +0 -0
- package/docs/recipes/kickassembler/screenshots/big-font-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/big-font-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/charset-copy-rom-to-ram-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/charset-copy-rom-to-ram.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cia-revision-detect-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cia-revision-detect.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-cycling-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-cycling.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-fade-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-fade.png +0 -0
- package/docs/recipes/kickassembler/screenshots/compare-16bit-signed-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/compare-16bit-signed.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cracktro-template.png +0 -0
- package/docs/recipes/kickassembler/screenshots/crt-banked-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/crt-banked.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dos-error-codes-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dos-error-codes.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dot-flag-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dot-flag.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-job-queue-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-job-queue.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-via-probe-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-via-probe.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dycp-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dycp-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dypp-sprite-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dypp-sprite-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dysp-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dysp.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-ntsc-run2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-run2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save.png +0 -0
- package/docs/recipes/kickassembler/screenshots/eight-way-scroll-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/eight-way-scroll.png +0 -0
- package/docs/recipes/kickassembler/screenshots/file-io-roundtrip-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/file-io-roundtrip.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fire-effect-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fire-effect.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fld-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fld.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fli-image.png +0 -0
- package/docs/recipes/kickassembler/screenshots/four-player-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/four-player-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/headless-verify-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/headless-verify.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hello-world.png +0 -0
- package/docs/recipes/kickassembler/screenshots/high-score-insert-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/high-score-insert.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hires-plot-line-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hires-plot-line.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-chain-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-chain.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-owns-port-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-owns-port.png +0 -0
- package/docs/recipes/kickassembler/screenshots/isometric-room-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/isometric-room.png +0 -0
- package/docs/recipes/kickassembler/screenshots/light-pen-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/light-pen-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/logic-rate-decoupling-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/logic-rate-decoupling.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-average.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-frame-b.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace.png +0 -0
- package/docs/recipes/kickassembler/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/memory-layout.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mouse-1351-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mouse-1351-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/nmi-timer-tick-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/nmi-timer-tick.png +0 -0
- package/docs/recipes/kickassembler/screenshots/own-keyscan-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/own-keyscan.png +0 -0
- package/docs/recipes/kickassembler/screenshots/paddle-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/paddle-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/palette-cells-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/palette-cells.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pseudo-3d-road-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pseudo-3d-road.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pwm-digi-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pwm-digi.png +0 -0
- package/docs/recipes/kickassembler/screenshots/raster-bars.png +0 -0
- package/docs/recipes/kickassembler/screenshots/reu-dma-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/reu-dma.png +0 -0
- package/docs/recipes/kickassembler/screenshots/runtime-relocation-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/runtime-relocation.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-dissolve-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-dissolve.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-wipe-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-wipe.png +0 -0
- package/docs/recipes/kickassembler/screenshots/scroll-panel-split-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/scroll-panel-split.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sfx-in-player-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sfx-in-player.png +0 -0
- package/docs/recipes/kickassembler/screenshots/shadebobs-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/shadebobs.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sideborder-open.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-table-runtime-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-table-runtime.png +0 -0
- package/docs/recipes/kickassembler/screenshots/software-sprite-preshifted-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/software-sprite-preshifted.png +0 -0
- package/docs/recipes/kickassembler/screenshots/speedcode-generator-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/speedcode-generator.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-border-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-border-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-cache-flip-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-cache-flip.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-24.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-game-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-game.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-priority-classes-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-priority-classes.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-sine-chain-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-sine-chain.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-stretcher-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-stretcher.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprites-only-screen-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprites-only-screen.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sqrt-atan2-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sqrt-atan2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/stable-raster-irq-control.png +0 -0
- package/docs/recipes/kickassembler/screenshots/stable-raster-irq.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tech-tech-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tech-tech.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tod-alarm-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tod-alarm.png +0 -0
- package/docs/recipes/kickassembler/screenshots/topbottom-border-open.png +0 -0
- package/docs/recipes/kickassembler/screenshots/twister-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/twister.png +0 -0
- package/docs/recipes/kickassembler/screenshots/unit-test-driver-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/unit-test-driver.png +0 -0
- package/docs/recipes/kickassembler/screenshots/vector-balls-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/vector-balls.png +0 -0
- package/docs/recipes/kickassembler/screenshots/wireframe-ships-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/wireframe-ships.png +0 -0
- package/docs/recipes/kickassembler/scroll-panel-split.md +381 -0
- package/docs/recipes/kickassembler/sfx-in-player.md +907 -0
- package/docs/recipes/kickassembler/shadebobs.md +522 -0
- package/docs/recipes/kickassembler/sideborder-open.md +338 -0
- package/docs/recipes/kickassembler/sine-scroller.md +321 -0
- package/docs/recipes/kickassembler/sine-table-runtime.md +815 -0
- package/docs/recipes/kickassembler/software-sprite-preshifted.md +725 -0
- package/docs/recipes/kickassembler/speedcode-generator.md +606 -0
- package/docs/recipes/kickassembler/sprite-border-scroller.md +696 -0
- package/docs/recipes/kickassembler/sprite-cache-flip.md +1071 -0
- package/docs/recipes/kickassembler/sprite-multiplex-24.md +326 -0
- package/docs/recipes/kickassembler/sprite-multiplex-game.md +986 -0
- package/docs/recipes/kickassembler/sprite-priority-classes.md +463 -0
- package/docs/recipes/kickassembler/sprite-sine-chain.md +338 -0
- package/docs/recipes/kickassembler/sprite-stretcher.md +501 -0
- package/docs/recipes/kickassembler/sprites-only-screen.md +550 -0
- package/docs/recipes/kickassembler/sqrt-atan2.md +1014 -0
- package/docs/recipes/kickassembler/stable-raster-irq.md +360 -0
- package/docs/recipes/kickassembler/tape-turbo-loader.md +875 -0
- package/docs/recipes/kickassembler/tech-tech.md +679 -0
- package/docs/recipes/kickassembler/tod-alarm.md +754 -0
- package/docs/recipes/kickassembler/topbottom-border-open.md +407 -0
- package/docs/recipes/kickassembler/twister.md +518 -0
- package/docs/recipes/kickassembler/unit-test-driver.md +314 -0
- package/docs/recipes/kickassembler/vector-balls.md +545 -0
- package/docs/recipes/kickassembler/wireframe-ships.md +2324 -0
- package/docs/recipes/oscar64/actor-activation-window.md +807 -0
- package/docs/recipes/oscar64/adventure-engine.md +1094 -0
- package/docs/recipes/oscar64/attract-replay.md +465 -0
- package/docs/recipes/oscar64/beat-em-up-lanes.md +563 -0
- package/docs/recipes/oscar64/bfs-distance-map.md +723 -0
- package/docs/recipes/oscar64/bitmap-koala-viewer.md +355 -0
- package/docs/recipes/oscar64/car-contact.md +950 -0
- package/docs/recipes/oscar64/cave-scan.md +609 -0
- package/docs/recipes/oscar64/char-bullets.md +477 -0
- package/docs/recipes/oscar64/charset-animation.md +383 -0
- package/docs/recipes/oscar64/charset-parallax.md +401 -0
- package/docs/recipes/oscar64/destructible-terrain.md +1099 -0
- package/docs/recipes/oscar64/difficulty-tables.md +654 -0
- package/docs/recipes/oscar64/dig-and-guards.md +975 -0
- package/docs/recipes/oscar64/directory-reader.md +535 -0
- package/docs/recipes/oscar64/divide-check.md +581 -0
- package/docs/recipes/oscar64/double-buffer-nomirror.md +205 -0
- package/docs/recipes/oscar64/double-buffer.md +255 -0
- package/docs/recipes/oscar64/falling-blocks.md +874 -0
- package/docs/recipes/oscar64/fixed-point-jump-velocity.md +289 -0
- package/docs/recipes/oscar64/fixed-point-jump.md +210 -0
- package/docs/recipes/oscar64/flip-screen-rooms.md +793 -0
- package/docs/recipes/oscar64/frame-sync-loop-overrun.md +214 -0
- package/docs/recipes/oscar64/frame-sync-loop.md +254 -0
- package/docs/recipes/oscar64/game-tree-search.md +743 -0
- package/docs/recipes/oscar64/ghost-targeting.md +867 -0
- package/docs/recipes/oscar64/headless-verify.md +345 -0
- package/docs/recipes/oscar64/hello-world.md +83 -0
- package/docs/recipes/oscar64/high-score-persist.md +772 -0
- package/docs/recipes/oscar64/iffl-kernal-skip.md +421 -0
- package/docs/recipes/oscar64/joystick-input.md +358 -0
- package/docs/recipes/oscar64/lane-pursuit.md +1028 -0
- package/docs/recipes/oscar64/level-rle-decoder.md +620 -0
- package/docs/recipes/oscar64/lfsr-random-seed2.md +338 -0
- package/docs/recipes/oscar64/lfsr-random.md +403 -0
- package/docs/recipes/oscar64/load-asset-runtime.md +492 -0
- package/docs/recipes/oscar64/memory-layout.md +232 -0
- package/docs/recipes/oscar64/mixed-fighters.md +781 -0
- package/docs/recipes/oscar64/multi-sprite-object.md +533 -0
- package/docs/recipes/oscar64/nav-area-pathfinding.md +881 -0
- package/docs/recipes/oscar64/object-pool.md +572 -0
- package/docs/recipes/oscar64/pal-ntsc-detect.md +257 -0
- package/docs/recipes/oscar64/password-state.md +532 -0
- package/docs/recipes/oscar64/per-frame-hitbox.md +651 -0
- package/docs/recipes/oscar64/petscii-screen-codes.md +428 -0
- package/docs/recipes/oscar64/platformer-scaffold.md +1467 -0
- package/docs/recipes/oscar64/print-number.md +367 -0
- package/docs/recipes/oscar64/raster-bars.md +239 -0
- package/docs/recipes/oscar64/raster-profile-bars.md +404 -0
- package/docs/recipes/oscar64/rel-side-sectors.md +391 -0
- package/docs/recipes/oscar64/relative-file-records.md +378 -0
- package/docs/recipes/oscar64/save-load-seq-file.md +365 -0
- package/docs/recipes/oscar64/screenshots/README.md +99 -0
- package/docs/recipes/oscar64/screenshots/actor-activation-window-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/actor-activation-window.png +0 -0
- package/docs/recipes/oscar64/screenshots/adventure-engine-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/adventure-engine.png +0 -0
- package/docs/recipes/oscar64/screenshots/attract-replay-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/attract-replay.png +0 -0
- package/docs/recipes/oscar64/screenshots/beat-em-up-lanes-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/beat-em-up-lanes.png +0 -0
- package/docs/recipes/oscar64/screenshots/bfs-distance-map-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/bfs-distance-map.png +0 -0
- package/docs/recipes/oscar64/screenshots/bitmap-koala-viewer.png +0 -0
- package/docs/recipes/oscar64/screenshots/car-contact-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/car-contact.png +0 -0
- package/docs/recipes/oscar64/screenshots/cave-scan-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/cave-scan.png +0 -0
- package/docs/recipes/oscar64/screenshots/char-bullets-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/char-bullets.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-animation-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-animation.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-parallax-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-parallax.png +0 -0
- package/docs/recipes/oscar64/screenshots/destructible-terrain-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/destructible-terrain.png +0 -0
- package/docs/recipes/oscar64/screenshots/difficulty-tables-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/difficulty-tables.png +0 -0
- package/docs/recipes/oscar64/screenshots/dig-and-guards-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/dig-and-guards.png +0 -0
- package/docs/recipes/oscar64/screenshots/directory-reader-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/directory-reader.png +0 -0
- package/docs/recipes/oscar64/screenshots/divide-check-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/divide-check.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer-nomirror.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer.png +0 -0
- package/docs/recipes/oscar64/screenshots/falling-blocks-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/falling-blocks.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-velocity-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-velocity.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump.png +0 -0
- package/docs/recipes/oscar64/screenshots/flip-screen-rooms-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/flip-screen-rooms.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop-overrun.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop.png +0 -0
- package/docs/recipes/oscar64/screenshots/game-tree-search-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/game-tree-search.png +0 -0
- package/docs/recipes/oscar64/screenshots/ghost-targeting-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/ghost-targeting.png +0 -0
- package/docs/recipes/oscar64/screenshots/headless-verify-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/headless-verify.png +0 -0
- package/docs/recipes/oscar64/screenshots/hello-world.png +0 -0
- package/docs/recipes/oscar64/screenshots/high-score-persist-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/high-score-persist.png +0 -0
- package/docs/recipes/oscar64/screenshots/iffl-kernal-skip-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/iffl-kernal-skip.png +0 -0
- package/docs/recipes/oscar64/screenshots/joystick-input-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/joystick-input.png +0 -0
- package/docs/recipes/oscar64/screenshots/lane-pursuit-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/lane-pursuit.png +0 -0
- package/docs/recipes/oscar64/screenshots/level-rle-decoder-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/level-rle-decoder.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random-seed2.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random.png +0 -0
- package/docs/recipes/oscar64/screenshots/load-asset-runtime-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/load-asset-runtime.png +0 -0
- package/docs/recipes/oscar64/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/memory-layout.png +0 -0
- package/docs/recipes/oscar64/screenshots/mixed-fighters-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/mixed-fighters.png +0 -0
- package/docs/recipes/oscar64/screenshots/multi-sprite-object-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/multi-sprite-object.png +0 -0
- package/docs/recipes/oscar64/screenshots/nav-area-pathfinding-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/nav-area-pathfinding.png +0 -0
- package/docs/recipes/oscar64/screenshots/object-pool-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/object-pool.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-oldntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-pal.png +0 -0
- package/docs/recipes/oscar64/screenshots/password-state-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/password-state.png +0 -0
- package/docs/recipes/oscar64/screenshots/per-frame-hitbox-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/per-frame-hitbox.png +0 -0
- package/docs/recipes/oscar64/screenshots/petscii-screen-codes-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/petscii-screen-codes.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-d64-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-d64.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold.png +0 -0
- package/docs/recipes/oscar64/screenshots/print-number-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/print-number.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-bars.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-profile-bars-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-profile-bars.png +0 -0
- package/docs/recipes/oscar64/screenshots/rel-side-sectors-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/rel-side-sectors.png +0 -0
- package/docs/recipes/oscar64/screenshots/relative-file-records-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/relative-file-records.png +0 -0
- package/docs/recipes/oscar64/screenshots/save-load-seq-file-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/save-load-seq-file.png +0 -0
- package/docs/recipes/oscar64/screenshots/seeded-level-fill-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/seeded-level-fill.png +0 -0
- package/docs/recipes/oscar64/screenshots/sfx-engine-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/sfx-engine.png +0 -0
- package/docs/recipes/oscar64/screenshots/sid-music-player.png +0 -0
- package/docs/recipes/oscar64/screenshots/simple-shmup.png +0 -0
- package/docs/recipes/oscar64/screenshots/slope-collision-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/slope-collision.png +0 -0
- package/docs/recipes/oscar64/screenshots/soft-scroll-h.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-animation-table-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-animation-table.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-multiplex-8.png +0 -0
- package/docs/recipes/oscar64/screenshots/stable-raster-irq.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-input-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-input.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-gameover.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-notrail-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-ungated-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-window-menu-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-window-menu.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-grid-collision-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-grid-collision.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-map-render-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-map-render.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-player-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-player.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-word-parser-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-word-parser.png +0 -0
- package/docs/recipes/oscar64/screenshots/vehicle-control-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/vehicle-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/wave-director-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/wave-director.png +0 -0
- package/docs/recipes/oscar64/seeded-level-fill.md +364 -0
- package/docs/recipes/oscar64/sfx-engine.md +514 -0
- package/docs/recipes/oscar64/sid-music-player.md +441 -0
- package/docs/recipes/oscar64/simple-shmup.md +1000 -0
- package/docs/recipes/oscar64/slope-collision.md +610 -0
- package/docs/recipes/oscar64/soft-scroll-h.md +261 -0
- package/docs/recipes/oscar64/sprite-animation-table.md +671 -0
- package/docs/recipes/oscar64/sprite-multiplex-8.md +314 -0
- package/docs/recipes/oscar64/stable-raster-irq.md +236 -0
- package/docs/recipes/oscar64/text-input.md +274 -0
- package/docs/recipes/oscar64/text-overlay-playfield.md +617 -0
- package/docs/recipes/oscar64/text-window-menu.md +551 -0
- package/docs/recipes/oscar64/tile-grid-collision.md +563 -0
- package/docs/recipes/oscar64/tile-map-render.md +395 -0
- package/docs/recipes/oscar64/two-player.md +528 -0
- package/docs/recipes/oscar64/two-word-parser.md +510 -0
- package/docs/recipes/oscar64/vehicle-control.md +771 -0
- package/docs/recipes/oscar64/wave-director.md +787 -0
- package/docs/recipes/runs.json +1606 -0
- package/docs/runtime/sim6502-reference.md +466 -0
- package/docs/runtime/vice-mcp-reference.md +351 -0
- package/docs/runtime/vice-reference.md +1393 -0
- package/docs/techniques/bitmap-modes.md +685 -0
- package/docs/techniques/cpu-cycle-tricks.md +1570 -0
- package/docs/techniques/effects-vector-3d.md +1431 -0
- package/docs/techniques/file-io.md +1427 -0
- package/docs/techniques/input.md +1072 -0
- package/docs/techniques/loaders-packers.md +768 -0
- package/docs/techniques/logic.md +3091 -0
- package/docs/techniques/maths.md +1524 -0
- package/docs/techniques/memory-banking.md +1686 -0
- package/docs/techniques/music-sid.md +1144 -0
- package/docs/techniques/raster.md +1543 -0
- package/docs/techniques/scroll.md +1292 -0
- package/docs/techniques/sprite.md +2566 -0
- package/docs/techniques/text-mode-render.md +717 -0
- package/docs/techniques/text.md +1095 -0
- package/docs/techniques/transitions.md +405 -0
- package/docs/toolchains/cartconv-reference.md +262 -0
- package/docs/toolchains/cc1541-reference.md +316 -0
- package/docs/toolchains/cc65-reference.md +667 -0
- package/docs/toolchains/error-sources/cc65/README.md +1 -0
- package/docs/toolchains/error-sources/cc65/missing-setcpu.s +4 -0
- package/docs/toolchains/error-sources/cc65/range-error.s +4 -0
- package/docs/toolchains/error-sources/cc65/segment-overflow.c +6 -0
- package/docs/toolchains/error-sources/cc65/unresolved-external.c +6 -0
- package/docs/toolchains/error-sources/kickassembler/README.md +1 -0
- package/docs/toolchains/error-sources/kickassembler/branch-out-of-range.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/failed-assert.asm +3 -0
- package/docs/toolchains/error-sources/kickassembler/flat-lib.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/import-source-no-namespace.asm +5 -0
- package/docs/toolchains/error-sources/kickassembler/macro-without-parentheses.asm +6 -0
- package/docs/toolchains/error-sources/kickassembler/memory-block-overlap.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/symbol-clash-lib.asm +5 -0
- package/docs/toolchains/error-sources/kickassembler/symbol-clash-main.asm +6 -0
- package/docs/toolchains/error-sources/kickassembler/unknown-symbol.asm +4 -0
- package/docs/toolchains/error-sources/oscar64/README.md +1 -0
- package/docs/toolchains/error-sources/oscar64/asm-addressing-mode.c +7 -0
- package/docs/toolchains/error-sources/oscar64/region-overflow.c +6 -0
- package/docs/toolchains/error-sources/oscar64/undefined-extern-var.c +5 -0
- package/docs/toolchains/error-sources/oscar64/undefined-extern.c +6 -0
- package/docs/toolchains/error-sources/oscar64/unknown-vic-field.c +6 -0
- package/docs/toolchains/error-sources/oscar64/void-main.c +3 -0
- package/docs/toolchains/kickassembler-reference.md +1020 -0
- package/docs/toolchains/memory-layout-planning.md +362 -0
- package/docs/toolchains/oscar64-headers-reference.md +583 -0
- package/docs/toolchains/oscar64-reference.md +892 -0
- package/docs/toolchains/petcat-reference.md +290 -0
- package/docs/toolchains/png2prg.md +188 -0
- package/docs/toolchains/release-disk.md +314 -0
- package/docs/toolchains/sidreloc.md +236 -0
- package/docs/toolchains/spindle-reference.md +487 -0
- package/docs/toolchains/tape-mastering.md +592 -0
- package/docs/toolchains/unit-testing-6502.md +281 -0
- package/docs/workflow/agent-harness.md +478 -0
- package/package.json +105 -0
- package/templates/_harness/CLAUDE.md.template +91 -0
- package/templates/_harness/PLAN.md.template +72 -0
- package/templates/_harness/check.py +442 -0
- package/templates/_harness/claude/settings.json +17 -0
- package/templates/_harness/gen-asm-header.py +96 -0
- package/templates/_harness/harness.mk +273 -0
- package/templates/_harness/hooks/plan-gate.py +185 -0
- package/templates/_harness/meter/frame_meter.asm +311 -0
- package/templates/_harness/meter/frame_meter.c +155 -0
- package/templates/_harness/meter/frame_meter.h +80 -0
- package/templates/_harness/zp-used.py +104 -0
- package/templates/action-puzzle/.claude/settings.json +17 -0
- package/templates/action-puzzle/.mcp.json +10 -0
- package/templates/action-puzzle/CLAUDE.md +120 -0
- package/templates/action-puzzle/Makefile +125 -0
- package/templates/action-puzzle/PLAN.md +388 -0
- package/templates/action-puzzle/README.md +240 -0
- package/templates/action-puzzle/expect.json +25 -0
- package/templates/action-puzzle/src/cave.c +280 -0
- package/templates/action-puzzle/src/cave.h +80 -0
- package/templates/action-puzzle/src/gen_autopilot.h +20 -0
- package/templates/action-puzzle/src/gen_caves.h +59 -0
- package/templates/action-puzzle/src/gen_notes.h +16 -0
- package/templates/action-puzzle/src/hiscore.c +152 -0
- package/templates/action-puzzle/src/hiscore.h +41 -0
- package/templates/action-puzzle/src/level.c +64 -0
- package/templates/action-puzzle/src/level.h +24 -0
- package/templates/action-puzzle/src/main.c +599 -0
- package/templates/action-puzzle/src/render.c +239 -0
- package/templates/action-puzzle/src/render.h +31 -0
- package/templates/action-puzzle/src/sound.c +158 -0
- package/templates/action-puzzle/src/sound.h +22 -0
- package/templates/action-puzzle/tools/disk_check.py +77 -0
- package/templates/action-puzzle/tools/drive.py +106 -0
- package/templates/action-puzzle/tools/gen.py +454 -0
- package/templates/action-puzzle/tools/model_check.py +49 -0
- package/templates/action-puzzle/tools/verdict_codes.py +24 -0
- package/templates/adventure/.claude/settings.json +17 -0
- package/templates/adventure/.mcp.json +10 -0
- package/templates/adventure/CLAUDE.md +118 -0
- package/templates/adventure/Makefile +113 -0
- package/templates/adventure/PLAN.md +396 -0
- package/templates/adventure/README.md +277 -0
- package/templates/adventure/expect.json +25 -0
- package/templates/adventure/src/engine.c +543 -0
- package/templates/adventure/src/engine.h +48 -0
- package/templates/adventure/src/gen_script.h +141 -0
- package/templates/adventure/src/gen_world.h +511 -0
- package/templates/adventure/src/main.c +439 -0
- package/templates/adventure/src/picture.c +83 -0
- package/templates/adventure/src/picture.h +16 -0
- package/templates/adventure/src/save.c +159 -0
- package/templates/adventure/src/save.h +25 -0
- package/templates/adventure/src/sound.c +71 -0
- package/templates/adventure/src/sound.h +16 -0
- package/templates/adventure/src/text.c +349 -0
- package/templates/adventure/src/text.h +40 -0
- package/templates/adventure/tools/disk_check.py +128 -0
- package/templates/adventure/tools/drive.py +119 -0
- package/templates/adventure/tools/gen.py +1033 -0
- package/templates/adventure/tools/world.py +356 -0
- package/templates/beat-em-up/.claude/settings.json +17 -0
- package/templates/beat-em-up/.mcp.json +10 -0
- package/templates/beat-em-up/CLAUDE.md +136 -0
- package/templates/beat-em-up/Makefile +96 -0
- package/templates/beat-em-up/PLAN.md +502 -0
- package/templates/beat-em-up/README.md +315 -0
- package/templates/beat-em-up/expect-gameover.json +8 -0
- package/templates/beat-em-up/expect.json +29 -0
- package/templates/beat-em-up/src/anim.c +70 -0
- package/templates/beat-em-up/src/art.c +344 -0
- package/templates/beat-em-up/src/autopilot.h +154 -0
- package/templates/beat-em-up/src/brute.c +273 -0
- package/templates/beat-em-up/src/enemy.c +281 -0
- package/templates/beat-em-up/src/engine.asm +512 -0
- package/templates/beat-em-up/src/fighter.c +384 -0
- package/templates/beat-em-up/src/game.h +269 -0
- package/templates/beat-em-up/src/hud.c +135 -0
- package/templates/beat-em-up/src/main.c +341 -0
- package/templates/beat-em-up/src/sound.c +44 -0
- package/templates/beat-em-up/src/street.c +93 -0
- package/templates/beat-em-up/src/verdict.h +523 -0
- package/templates/beat-em-up/src/view.c +362 -0
- package/templates/beat-em-up/tools/drive.py +105 -0
- package/templates/beat-em-up/tools/flickercheck.py +273 -0
- package/templates/demo/.claude/settings.json +17 -0
- package/templates/demo/.mcp.json +10 -0
- package/templates/demo/CLAUDE.md +129 -0
- package/templates/demo/Makefile +66 -0
- package/templates/demo/PLAN.md +401 -0
- package/templates/demo/README.md +322 -0
- package/templates/demo/expect.json +945 -0
- package/templates/demo/src/config.asm +80 -0
- package/templates/demo/src/framework.asm +390 -0
- package/templates/demo/src/main.asm +139 -0
- package/templates/demo/src/music.asm +197 -0
- package/templates/demo/src/part_main.asm +279 -0
- package/templates/demo/src/part_title.asm +79 -0
- package/templates/demo/src/parts.asm +43 -0
- package/templates/demo/src/tables.asm +73 -0
- package/templates/demo/src/verdict.asm +179 -0
- package/templates/demo/tools/audio.py +80 -0
- package/templates/demo/tools/gen_expect.py +167 -0
- package/templates/demo/tools/probe.py +95 -0
- package/templates/hello/.claude/settings.json +17 -0
- package/templates/hello/.mcp.json +10 -0
- package/templates/hello/CLAUDE.md +100 -0
- package/templates/hello/Makefile +38 -0
- package/templates/hello/PLAN.md +200 -0
- package/templates/hello/expect.json +20 -0
- package/templates/hello/src/main.c +161 -0
- package/templates/hello/src/sprite.asm +27 -0
- package/templates/hello-kick/.claude/settings.json +17 -0
- package/templates/hello-kick/.mcp.json +10 -0
- package/templates/hello-kick/CLAUDE.md +100 -0
- package/templates/hello-kick/Makefile +17 -0
- package/templates/hello-kick/PLAN.md +199 -0
- package/templates/hello-kick/expect.json +20 -0
- package/templates/hello-kick/src/main.asm +233 -0
- package/templates/platformer/.claude/settings.json +17 -0
- package/templates/platformer/.mcp.json +10 -0
- package/templates/platformer/CLAUDE.md +125 -0
- package/templates/platformer/Makefile +86 -0
- package/templates/platformer/PLAN.md +360 -0
- package/templates/platformer/README.md +277 -0
- package/templates/platformer/expect.json +32 -0
- package/templates/platformer/src/actors.c +289 -0
- package/templates/platformer/src/anim.c +51 -0
- package/templates/platformer/src/art.c +212 -0
- package/templates/platformer/src/autopilot.h +30 -0
- package/templates/platformer/src/engine.asm +253 -0
- package/templates/platformer/src/game.h +248 -0
- package/templates/platformer/src/hud.c +90 -0
- package/templates/platformer/src/level.c +184 -0
- package/templates/platformer/src/main.c +306 -0
- package/templates/platformer/src/player.c +268 -0
- package/templates/platformer/src/sound.c +42 -0
- package/templates/platformer/src/verdict.h +206 -0
- package/templates/platformer/src/view.c +331 -0
- package/templates/platformer/stage-expect.json +6 -0
- package/templates/platformer/tools/drive.py +112 -0
- package/templates/platformer/tools/tearcheck.py +229 -0
- package/templates/shmup-vertical/.claude/settings.json +17 -0
- package/templates/shmup-vertical/.mcp.json +10 -0
- package/templates/shmup-vertical/CLAUDE.md +137 -0
- package/templates/shmup-vertical/Makefile +131 -0
- package/templates/shmup-vertical/PLAN.md +569 -0
- package/templates/shmup-vertical/README.md +189 -0
- package/templates/shmup-vertical/expect.json +38 -0
- package/templates/shmup-vertical/src/bullets.c +158 -0
- package/templates/shmup-vertical/src/bullets.h +35 -0
- package/templates/shmup-vertical/src/display.c +239 -0
- package/templates/shmup-vertical/src/display.h +40 -0
- package/templates/shmup-vertical/src/game.h +85 -0
- package/templates/shmup-vertical/src/glyph.asm +358 -0
- package/templates/shmup-vertical/src/hiscore.c +141 -0
- package/templates/shmup-vertical/src/hiscore.h +16 -0
- package/templates/shmup-vertical/src/hit.asm +180 -0
- package/templates/shmup-vertical/src/hitbox.c +59 -0
- package/templates/shmup-vertical/src/hitbox.h +25 -0
- package/templates/shmup-vertical/src/kernel.asm +330 -0
- package/templates/shmup-vertical/src/level.c +174 -0
- package/templates/shmup-vertical/src/level.h +27 -0
- package/templates/shmup-vertical/src/main.c +824 -0
- package/templates/shmup-vertical/src/mux.asm +321 -0
- package/templates/shmup-vertical/src/sound.asm +255 -0
- package/templates/shmup-vertical/src/step.asm +169 -0
- package/templates/shmup-vertical/src/waves.c +195 -0
- package/templates/shmup-vertical/src/waves.h +33 -0
- package/templates/shmup-vertical/stage-expect.json +6 -0
- package/templates/shmup-vertical/tools/drive.py +152 -0
- package/templates/shmup-vertical/tools/joytest.py +159 -0
- package/templates/shmup-vertical/tools/meter.py +15 -0
- package/templates/shmup-vertical/tools/phases.py +73 -0
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod output schemas for c64-kb MCP tools. Each tool that returns
|
|
3
|
+
* structured data registers one of these as its `outputSchema` so
|
|
4
|
+
* consuming agents can parse typed JSON via `structuredContent` rather
|
|
5
|
+
* than re-tokenize the human-readable markdown blob in `content[0].text`.
|
|
6
|
+
*
|
|
7
|
+
* Per MCP spec 2025-06-18: tools with structuredContent SHOULD also
|
|
8
|
+
* return a serialized text block for backward compat.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
import { VerifiedOnSchema } from "./machine-variant.js";
|
|
12
|
+
import { BriefingDesignSchema } from "./plan-budget.js";
|
|
13
|
+
const DocChunkSchema = z.object({
|
|
14
|
+
source: z.string(),
|
|
15
|
+
section: z.string(),
|
|
16
|
+
text: z.string(),
|
|
17
|
+
score: z.number(),
|
|
18
|
+
});
|
|
19
|
+
export const RegisterLookupSchema = z.object({
|
|
20
|
+
found: z.boolean(),
|
|
21
|
+
name: z.string(),
|
|
22
|
+
address: z.string(),
|
|
23
|
+
chip: z.string(),
|
|
24
|
+
rw: z.enum(["R", "W", "RW"]),
|
|
25
|
+
aliases: z.array(z.string()),
|
|
26
|
+
documentation: z.array(DocChunkSchema),
|
|
27
|
+
});
|
|
28
|
+
export const KernalLookupSchema = z.object({
|
|
29
|
+
name: z.string(),
|
|
30
|
+
address: z.string(),
|
|
31
|
+
description: z.string(),
|
|
32
|
+
pairs_with: z.array(z.string()),
|
|
33
|
+
documentation: z.array(DocChunkSchema),
|
|
34
|
+
});
|
|
35
|
+
export const MemoryMapSchema = z.object({
|
|
36
|
+
address: z.string(),
|
|
37
|
+
regions: z.array(z.object({
|
|
38
|
+
name: z.string(),
|
|
39
|
+
start: z.string(),
|
|
40
|
+
end: z.string(),
|
|
41
|
+
default_use: z.string(),
|
|
42
|
+
bank_switchable: z.boolean(),
|
|
43
|
+
})),
|
|
44
|
+
});
|
|
45
|
+
export const OpcodeLookupSchema = z.object({
|
|
46
|
+
query: z.string(),
|
|
47
|
+
results: z.array(DocChunkSchema),
|
|
48
|
+
});
|
|
49
|
+
export const PalNtscDiffSchema = z.object({
|
|
50
|
+
topic: z.string(),
|
|
51
|
+
regions: z.array(z.object({
|
|
52
|
+
name: z.string(),
|
|
53
|
+
refresh_hz: z.number(),
|
|
54
|
+
lines_per_frame: z.number(),
|
|
55
|
+
cycles_per_line: z.number(),
|
|
56
|
+
})),
|
|
57
|
+
documentation: z.array(DocChunkSchema),
|
|
58
|
+
});
|
|
59
|
+
export const SearchSchema = z.object({
|
|
60
|
+
query: z.string(),
|
|
61
|
+
hits: z.array(z.object({
|
|
62
|
+
source: z.string(),
|
|
63
|
+
section: z.string(),
|
|
64
|
+
text: z.string(),
|
|
65
|
+
score: z.number(),
|
|
66
|
+
confidence: z.enum(["HIGH", "MEDIUM", "LOW", "UNSCORED"]),
|
|
67
|
+
})),
|
|
68
|
+
});
|
|
69
|
+
const RecipeSchema = z.object({
|
|
70
|
+
name: z.string(),
|
|
71
|
+
toolchain: z.string(),
|
|
72
|
+
output_format: z.string(),
|
|
73
|
+
region: z.string(),
|
|
74
|
+
source_doc: z.string(),
|
|
75
|
+
});
|
|
76
|
+
export const ToolchainHintSchema = z.object({
|
|
77
|
+
toolchain: z.string(),
|
|
78
|
+
intent: z.string(),
|
|
79
|
+
snippet: z.string(),
|
|
80
|
+
rationale: z.string(),
|
|
81
|
+
sources: z.array(DocChunkSchema),
|
|
82
|
+
});
|
|
83
|
+
export const RecipeLookupSchema = z.object({
|
|
84
|
+
name: z.string(),
|
|
85
|
+
toolchain: z.string(),
|
|
86
|
+
output_format: z.string(),
|
|
87
|
+
region: z.string(),
|
|
88
|
+
source_doc: z.string(),
|
|
89
|
+
// The toolchain version the repo's gates built this recipe with, from the
|
|
90
|
+
// Tool node's version_verified (schema 24); absent when the page states none.
|
|
91
|
+
toolchain_version_verified: z.string().optional(),
|
|
92
|
+
documentation: z.array(DocChunkSchema),
|
|
93
|
+
// The page's Source listing, the fence the listing gate builds; absent
|
|
94
|
+
// only when the page is not on disk beside the server.
|
|
95
|
+
source_code: z.object({ language: z.string(), text: z.string() }).optional(),
|
|
96
|
+
// The machine variants verify:recipes runs this recipe on and compares
|
|
97
|
+
// with a committed screenshot (schema 29, from docs/recipes/runs.json).
|
|
98
|
+
// Empty when none; pinned false means runs.json has no entry and the
|
|
99
|
+
// run uses its defaults (PAL, 8,000,000 cycles).
|
|
100
|
+
verified_on: z.array(VerifiedOnSchema).optional(),
|
|
101
|
+
});
|
|
102
|
+
export const RecipesForSchema = z.object({
|
|
103
|
+
filter: z.object({
|
|
104
|
+
toolchain: z.string().optional(),
|
|
105
|
+
region: z.string().optional(),
|
|
106
|
+
technique: z.string().optional(),
|
|
107
|
+
file_format: z.string().optional(),
|
|
108
|
+
verified_on: z.string().optional(),
|
|
109
|
+
}),
|
|
110
|
+
recipes: z.array(RecipeSchema),
|
|
111
|
+
});
|
|
112
|
+
const TechniqueRefSchema = z.object({ name: z.string(), title: z.string() });
|
|
113
|
+
// Cost model (schema 22): the technique page's **Cost:** and **Cost basis:**
|
|
114
|
+
// lines. Only the keys the page carried are present. `basis` says how the
|
|
115
|
+
// figures were obtained, strongest first: measured-vice (run in VICE),
|
|
116
|
+
// derived-listing (read off a built listing or map), arithmetic (worked
|
|
117
|
+
// from settled constants), estimated (a judgement, not a measurement).
|
|
118
|
+
import { CostBasisSchema } from "./cost-basis.js";
|
|
119
|
+
export { CostBasisSchema };
|
|
120
|
+
const TechniqueCostSchema = z.object({
|
|
121
|
+
cycles_per_line: z.number().int().optional(),
|
|
122
|
+
cycles_per_frame: z.number().int().optional(),
|
|
123
|
+
lines_active: z.number().int().optional(),
|
|
124
|
+
bytes_code: z.number().int().optional(),
|
|
125
|
+
bytes_data: z.number().int().optional(),
|
|
126
|
+
zp_bytes: z.number().int().optional(),
|
|
127
|
+
irq_slots: z.number().int().optional(),
|
|
128
|
+
sprites_per_line: z.number().int().optional(),
|
|
129
|
+
// Schema 27: a measured typical frame beside a worst-frame cycles_per_frame.
|
|
130
|
+
cycles_per_frame_typical: z.number().int().optional(),
|
|
131
|
+
basis: CostBasisSchema,
|
|
132
|
+
// **Cost measured on:** the recipe the figures came from, and its
|
|
133
|
+
// conditions ("screen blanked", "whole PRG"); **Cost includes:** the
|
|
134
|
+
// techniques whose work is inside this figure (schema 27).
|
|
135
|
+
measured_on: z.string().optional(),
|
|
136
|
+
conditions: z.string().optional(),
|
|
137
|
+
includes: z.array(z.string()).optional(),
|
|
138
|
+
});
|
|
139
|
+
// A CLAIMS edge (schema 25): the HardwareUnit, the mode, and for zero_page
|
|
140
|
+
// the canonical byte ranges ("02-0D,24-2F") and whether they relocate.
|
|
141
|
+
const ClaimSchema = z.object({
|
|
142
|
+
unit: z.string(),
|
|
143
|
+
mode: z.enum(["owns", "shares", "reads", "init"]),
|
|
144
|
+
ranges: z.string().optional(),
|
|
145
|
+
relocatable: z.boolean().optional(),
|
|
146
|
+
});
|
|
147
|
+
const ClaimsStatedSchema = z.enum(["stated", "none", "unknown"]);
|
|
148
|
+
export const TechniqueLookupSchema = z.object({
|
|
149
|
+
name: z.string(),
|
|
150
|
+
title: z.string(),
|
|
151
|
+
category: z.string(),
|
|
152
|
+
complexity: z.string(),
|
|
153
|
+
chip: z.string().optional(),
|
|
154
|
+
requires_region: z.string().optional(),
|
|
155
|
+
raster_band: z.string().optional(),
|
|
156
|
+
uses_registers: z.array(z.object({ name: z.string(), address: z.string() })),
|
|
157
|
+
uses_kernal: z.array(z.object({ name: z.string(), address: z.string() })),
|
|
158
|
+
recipes: z.array(z.object({ name: z.string(), toolchain: z.string() })),
|
|
159
|
+
// REQUIRES edges: techniques that must be set up before, or run underneath,
|
|
160
|
+
// this one (requires) and techniques that presuppose this one (required_by).
|
|
161
|
+
requires: z.array(TechniqueRefSchema).optional(),
|
|
162
|
+
required_by: z.array(TechniqueRefSchema).optional(),
|
|
163
|
+
// MITIGATED_BY edges pointing here: pitfalls whose Fix is this technique.
|
|
164
|
+
mitigates: z.array(z.object({ name: z.string(), title: z.string(), severity: z.string() })).optional(),
|
|
165
|
+
documentation: z.array(DocChunkSchema),
|
|
166
|
+
// Absent when the technique's page has no **Cost:** line.
|
|
167
|
+
cost: TechniqueCostSchema.optional(),
|
|
168
|
+
// **Claims:** (schema 25). claims_stated is "unknown" when the page has no
|
|
169
|
+
// usable Claims line, which is not the same as "none" (claims no unit).
|
|
170
|
+
claims: z.array(ClaimSchema).optional(),
|
|
171
|
+
claims_stated: ClaimsStatedSchema.optional(),
|
|
172
|
+
claims_basis: z.string().optional(),
|
|
173
|
+
});
|
|
174
|
+
export const TechniquesForSchema = z.object({
|
|
175
|
+
filter: z.object({
|
|
176
|
+
category: z.string().optional(),
|
|
177
|
+
chip: z.string().optional(),
|
|
178
|
+
region: z.string().optional(),
|
|
179
|
+
register: z.string().optional(),
|
|
180
|
+
recipe: z.string().optional(),
|
|
181
|
+
requires: z.string().optional(),
|
|
182
|
+
// A HardwareUnit name: techniques with a CLAIMS edge to it (any mode).
|
|
183
|
+
claims: z.string().optional(),
|
|
184
|
+
}),
|
|
185
|
+
techniques: z.array(z.object({
|
|
186
|
+
name: z.string(),
|
|
187
|
+
title: z.string(),
|
|
188
|
+
category: z.string(),
|
|
189
|
+
complexity: z.string(),
|
|
190
|
+
})),
|
|
191
|
+
});
|
|
192
|
+
const CONFLICT_KINDS = [
|
|
193
|
+
"region_mismatch", // one needs PAL, the other NTSC
|
|
194
|
+
"cpu_exclusive", // both need every CPU cycle on the lines they cover
|
|
195
|
+
"cpu_vs_irq", // one needs every CPU cycle; the other takes interrupts mid-frame
|
|
196
|
+
"sprite_set", // one needs a constant sprite set; the other changes it mid-frame
|
|
197
|
+
"kernal_banked_out", // one runs with the KERNAL ROM out; the other calls KERNAL routines
|
|
198
|
+
"serial_bus_busy", // one owns the drive's serial bus while resident; the other does KERNAL disk I/O
|
|
199
|
+
"prerequisite_conflict", // a rule fires between a technique and a REQUIRES prerequisite of another; underlying_kind names the rule
|
|
200
|
+
"shared_register", // both touch the same register (soft)
|
|
201
|
+
"shared_kernal", // both call the same KERNAL routine (soft)
|
|
202
|
+
// Resource claims (schema 25), from **Claims:** lines:
|
|
203
|
+
"unit_contention", // both own the same HardwareUnit (hard)
|
|
204
|
+
"zero_page_overlap", // both own zero-page bytes in common (hard; soft if either side relocates)
|
|
205
|
+
"unit_shared", // one owns a unit the other shares, or both share it (soft)
|
|
206
|
+
"unit_read_while_driven", // one owns a unit the other only reads (soft)
|
|
207
|
+
"init_order", // one uses a unit once at start-up that the other then owns (info)
|
|
208
|
+
// Schema 26, from **Clobbers zero page:** lines on the KERNAL page:
|
|
209
|
+
"kernal_clobbers_zp", // one calls a KERNAL routine that may write zero-page bytes the other claims (soft)
|
|
210
|
+
];
|
|
211
|
+
const CompatibilityConflictSchema = z.object({
|
|
212
|
+
a: z.string(),
|
|
213
|
+
b: z.string(),
|
|
214
|
+
kind: z.enum(CONFLICT_KINDS),
|
|
215
|
+
// hard: cannot coexist as combined; the resolution says how to separate them.
|
|
216
|
+
// soft: combinable with coordination.
|
|
217
|
+
// info: combinable; the text says what order or protocol keeps it so. It
|
|
218
|
+
// does not change the verdict.
|
|
219
|
+
severity: z.enum(["hard", "soft", "info"]),
|
|
220
|
+
shared: z.array(z.string()),
|
|
221
|
+
rationale: z.string(),
|
|
222
|
+
resolution: z.string().optional(),
|
|
223
|
+
// prerequisite_conflict only: the closure members the rule actually fired
|
|
224
|
+
// between, when they differ from a and b (which name the input techniques).
|
|
225
|
+
via: z.array(z.string()).optional(),
|
|
226
|
+
// prerequisite_conflict only: the rule that fired between them
|
|
227
|
+
// (unit_contention, cpu_vs_irq, ...), since the closure can carry any rule
|
|
228
|
+
// at any severity.
|
|
229
|
+
underlying_kind: z.enum(CONFLICT_KINDS).optional(),
|
|
230
|
+
});
|
|
231
|
+
const SharedInfrastructureSchema = z.object({
|
|
232
|
+
name: z.string(),
|
|
233
|
+
kind: z.enum(["Register", "KernalRoutine", "discipline", "missing_prerequisite"]),
|
|
234
|
+
via_recipes: z.array(z.string()),
|
|
235
|
+
// missing_prerequisite only: the input techniques whose REQUIRES closure
|
|
236
|
+
// contains this technique, which was not itself in the input set.
|
|
237
|
+
required_by: z.array(z.string()).optional(),
|
|
238
|
+
});
|
|
239
|
+
// What the graph actually knows about each technique named in the check.
|
|
240
|
+
// A technique with no registers, no KERNAL routines and no demands cannot
|
|
241
|
+
// conflict with anything by construction; `known: false` says the verdict
|
|
242
|
+
// is silent about it, not that it is safe.
|
|
243
|
+
const CompatibilityCoverageSchema = z.object({
|
|
244
|
+
technique: z.string(),
|
|
245
|
+
found: z.boolean(),
|
|
246
|
+
registers: z.number(),
|
|
247
|
+
kernal_routines: z.number(),
|
|
248
|
+
demands: z.array(z.string()),
|
|
249
|
+
// The page's **Raster band:** in canonical form ("45-250", "movable").
|
|
250
|
+
raster_band: z.string().optional(),
|
|
251
|
+
known: z.boolean(),
|
|
252
|
+
// Whether the page states unit claims: "unknown" when it has no Claims
|
|
253
|
+
// line, so a unit conflict involving it cannot be ruled out.
|
|
254
|
+
claims: ClaimsStatedSchema,
|
|
255
|
+
// Present when the technique was not in the input set but entered the
|
|
256
|
+
// check through another technique's REQUIRES closure.
|
|
257
|
+
implied_by: z.array(z.string()).optional(),
|
|
258
|
+
});
|
|
259
|
+
const BandSeparatedSchema = z.object({
|
|
260
|
+
a: z.string(),
|
|
261
|
+
b: z.string(),
|
|
262
|
+
a_band: z.string(),
|
|
263
|
+
b_band: z.string(),
|
|
264
|
+
rules: z.array(z.string()), // the conflict kinds the bands cleared
|
|
265
|
+
});
|
|
266
|
+
export const CompatibilityCheckSchema = z.object({
|
|
267
|
+
techniques: z.array(z.string()),
|
|
268
|
+
conflicts: z.array(CompatibilityConflictSchema),
|
|
269
|
+
// Pairs a line-sharing rule would have caught, cleared because both pages
|
|
270
|
+
// state **Raster band:** line ranges that share no raster line (schema 24).
|
|
271
|
+
band_separated: z.array(BandSeparatedSchema),
|
|
272
|
+
shared_infrastructure: z.array(SharedInfrastructureSchema),
|
|
273
|
+
data_coverage: z.array(CompatibilityCoverageSchema),
|
|
274
|
+
verdict: z.enum(["compatible", "warnings", "incompatible"]),
|
|
275
|
+
});
|
|
276
|
+
export const TimingBudgetSchema = z.object({
|
|
277
|
+
technique: z.string(),
|
|
278
|
+
region: z.enum(["PAL", "NTSC"]),
|
|
279
|
+
cycles_per_line: z.number(),
|
|
280
|
+
cycles_per_frame: z.number(),
|
|
281
|
+
badline_cycles_lost: z.number(),
|
|
282
|
+
irq_overhead_cycles: z.number(),
|
|
283
|
+
// Sprite DMA (schema 24): the sprites assumed on the line, where that
|
|
284
|
+
// number came from, and the cycles their DMA takes (3 + 2 per sprite for
|
|
285
|
+
// sprites numbered without gaps, measured in VICE; see vic-ii-reference.md).
|
|
286
|
+
sprites_per_line: z.number(),
|
|
287
|
+
sprites_source: z.enum(["input", "technique", "none"]),
|
|
288
|
+
sprite_dma_cycles: z.number(),
|
|
289
|
+
user_cycles_per_line_normal: z.number(),
|
|
290
|
+
user_cycles_per_line_badline: z.number(),
|
|
291
|
+
notes: z.array(z.string()),
|
|
292
|
+
});
|
|
293
|
+
export { PlanBudgetSchema } from "./plan-budget.js";
|
|
294
|
+
const TriggeredBySchema = z.object({
|
|
295
|
+
name: z.string(),
|
|
296
|
+
kind: z.enum(["Register", "KernalRoutine", "Technique"]),
|
|
297
|
+
});
|
|
298
|
+
export const PitfallsForSchema = z.object({
|
|
299
|
+
topic: z.string(),
|
|
300
|
+
topic_kind: z.enum(["Register", "KernalRoutine", "Technique", "search"]),
|
|
301
|
+
pitfalls: z.array(z.object({
|
|
302
|
+
name: z.string(),
|
|
303
|
+
title: z.string(),
|
|
304
|
+
severity: z.enum(["critical", "high", "medium", "low"]),
|
|
305
|
+
region: z.enum(["pal", "ntsc", "both"]),
|
|
306
|
+
category: z.string(),
|
|
307
|
+
triggered_by: z.array(TriggeredBySchema),
|
|
308
|
+
// Techniques whose application is this pitfall's Fix (MITIGATED_BY).
|
|
309
|
+
mitigated_by: z.array(TriggeredBySchema),
|
|
310
|
+
// Present when the pitfall was reached through a register or KERNAL
|
|
311
|
+
// routine the technique declares, not through a direct edge.
|
|
312
|
+
via: z
|
|
313
|
+
.array(z.object({
|
|
314
|
+
name: z.string(),
|
|
315
|
+
kind: z.enum(["Register", "KernalRoutine"]),
|
|
316
|
+
address: z.string().optional(),
|
|
317
|
+
}))
|
|
318
|
+
.optional(),
|
|
319
|
+
})),
|
|
320
|
+
search_results: z
|
|
321
|
+
.array(z.object({
|
|
322
|
+
source: z.string(),
|
|
323
|
+
section: z.string(),
|
|
324
|
+
text: z.string(),
|
|
325
|
+
score: z.number(),
|
|
326
|
+
}))
|
|
327
|
+
.optional(),
|
|
328
|
+
});
|
|
329
|
+
export const FailureDiagnoseSchema = z.object({
|
|
330
|
+
query: z.string(),
|
|
331
|
+
matches: z.array(z.object({
|
|
332
|
+
symptom: z.string(),
|
|
333
|
+
description: z.string(),
|
|
334
|
+
likely_causes: z.array(z.string()),
|
|
335
|
+
diagnosis_steps: z.string(),
|
|
336
|
+
caused_by: z.array(TriggeredBySchema),
|
|
337
|
+
relevance: z.number().min(0).max(1),
|
|
338
|
+
})),
|
|
339
|
+
});
|
|
340
|
+
// c64_lint_source: the pitfall pages compiled into source rules
|
|
341
|
+
// (src/tools/lint.ts). One finding per site; certainty says how far the
|
|
342
|
+
// text pattern is from the pitfall itself.
|
|
343
|
+
const LintFindingSchema = z.object({
|
|
344
|
+
rule: z.string(),
|
|
345
|
+
pitfall: z.string(),
|
|
346
|
+
line: z.number().int().min(1),
|
|
347
|
+
excerpt: z.string(),
|
|
348
|
+
message: z.string(),
|
|
349
|
+
page: z.string(),
|
|
350
|
+
certainty: z.enum(["definite", "likely", "heuristic"]),
|
|
351
|
+
});
|
|
352
|
+
export const LintSourceSchema = z.object({
|
|
353
|
+
language: z.enum(["c", "asm"]),
|
|
354
|
+
toolchain: z.string().optional(),
|
|
355
|
+
findings: z.array(LintFindingSchema),
|
|
356
|
+
summary: z.string(),
|
|
357
|
+
});
|
|
358
|
+
export const BriefingSchema = z.object({
|
|
359
|
+
brief: z.string(),
|
|
360
|
+
proposed_techniques: z.array(z.object({
|
|
361
|
+
name: z.string(),
|
|
362
|
+
title: z.string(),
|
|
363
|
+
category: z.string(),
|
|
364
|
+
complexity: z.enum(["low", "medium", "high", "scene-tier"]).optional(),
|
|
365
|
+
why_proposed: z.string(),
|
|
366
|
+
uses_registers: z.array(z.string()),
|
|
367
|
+
uses_kernal: z.array(z.string()),
|
|
368
|
+
region: z.enum(["pal", "ntsc", "both"]).optional(),
|
|
369
|
+
implementing_recipes: z.array(z.string()),
|
|
370
|
+
})),
|
|
371
|
+
compatibility: z.object({
|
|
372
|
+
conflicts: z.array(CompatibilityConflictSchema),
|
|
373
|
+
warnings: z.array(CompatibilityConflictSchema),
|
|
374
|
+
shared_infrastructure: z.array(SharedInfrastructureSchema),
|
|
375
|
+
}),
|
|
376
|
+
pitfalls: z.array(z.object({
|
|
377
|
+
name: z.string(),
|
|
378
|
+
title: z.string(),
|
|
379
|
+
severity: z.string(),
|
|
380
|
+
triggered_by_proposed: z.array(z.string()),
|
|
381
|
+
})),
|
|
382
|
+
toolchain_split: z.object({
|
|
383
|
+
primary: z.string(),
|
|
384
|
+
cycle_tight_handoff: z.array(z.string()),
|
|
385
|
+
rationale: z.string(),
|
|
386
|
+
}),
|
|
387
|
+
build_order: z.array(z.object({
|
|
388
|
+
step: z.number(),
|
|
389
|
+
label: z.string(),
|
|
390
|
+
recipes: z.array(z.string()),
|
|
391
|
+
})),
|
|
392
|
+
// The plan added up (schema 22, tools 1.25.0; the rules of c64_plan_budget
|
|
393
|
+
// since schema 27, tools 2.0.0, all members in one play frame).
|
|
394
|
+
// cycles_per_frame_sum is the high end: worst-frame figures summed, with
|
|
395
|
+
// multi-frame figures and work another figure includes left out (listed
|
|
396
|
+
// in excluded). cycles_low sums measured typical frames where a page
|
|
397
|
+
// states one. fixed_loss_cycles is the badline charge for figures not
|
|
398
|
+
// measured wall-clock with the screen on. unknown names the members with
|
|
399
|
+
// no cycles figure; the verdict is then "undetermined", never a sum that
|
|
400
|
+
// counts them as zero. bytes_sum leaves out figures flagged as a whole
|
|
401
|
+
// program. without_cost names the members with no Cost line at all.
|
|
402
|
+
budget: z.object({
|
|
403
|
+
region: z.enum(["PAL", "NTSC"]),
|
|
404
|
+
frame_cycles: z.number().int(),
|
|
405
|
+
cycles_per_frame_sum: z.number().int(),
|
|
406
|
+
cycles_low: z.number().int(),
|
|
407
|
+
fixed_loss_cycles: z.number().int(),
|
|
408
|
+
cycles_verdict: z.enum(["over", "under", "undetermined", "no_data"]),
|
|
409
|
+
ram_budget_bytes: z.number().int(),
|
|
410
|
+
bytes_sum: z.number().int(),
|
|
411
|
+
bytes_verdict: z.enum(["over", "under", "no_data"]),
|
|
412
|
+
contributors: z.array(z.object({
|
|
413
|
+
name: z.string(),
|
|
414
|
+
cycles_per_frame: z.number().int().optional(),
|
|
415
|
+
cycles_per_frame_typical: z.number().int().optional(),
|
|
416
|
+
bytes: z.number().int().optional(),
|
|
417
|
+
basis: CostBasisSchema,
|
|
418
|
+
measured_on: z.string().optional(),
|
|
419
|
+
})),
|
|
420
|
+
excluded: z.array(z.object({
|
|
421
|
+
name: z.string(),
|
|
422
|
+
reason: z.enum(["multi_frame", "included_by", "inside_band_of", "whole_program_bytes"]),
|
|
423
|
+
by: z.string().optional(),
|
|
424
|
+
})),
|
|
425
|
+
unknown: z.array(z.string()),
|
|
426
|
+
to_measure: z.array(z.object({ technique: z.string(), recipe: z.string().nullable() })),
|
|
427
|
+
without_cost: z.array(z.string()),
|
|
428
|
+
weakest_basis: CostBasisSchema.nullable(),
|
|
429
|
+
is_floor: z.boolean(),
|
|
430
|
+
assumptions: z.array(z.string()),
|
|
431
|
+
}),
|
|
432
|
+
// Present when an archetype was asked for (game genre or demo form).
|
|
433
|
+
// When the archetype names an Archetype node, its FEATURES targets were
|
|
434
|
+
// forced into proposed_techniques and its RISKS targets added to
|
|
435
|
+
// pitfalls; both lists are repeated here as the graph holds them. When
|
|
436
|
+
// it names none, archetype_not_found lists the names the graph does
|
|
437
|
+
// have, across both kinds.
|
|
438
|
+
archetype: z
|
|
439
|
+
.object({
|
|
440
|
+
name: z.string(),
|
|
441
|
+
title: z.string(),
|
|
442
|
+
kind: z.string(),
|
|
443
|
+
features: z.array(z.string()),
|
|
444
|
+
risks: z.array(z.string()),
|
|
445
|
+
resolved_from: z.string().optional(),
|
|
446
|
+
// Set when the game brief named no archetype and these words from
|
|
447
|
+
// the archetype's **Brief words:** line routed it.
|
|
448
|
+
inferred_from: z.array(z.string()).optional(),
|
|
449
|
+
// The playable starter in templates/ for this archetype, from the
|
|
450
|
+
// page's **Starter:** line: `npm run new-project -- <starter> <dir>`.
|
|
451
|
+
starter: z.string().optional(),
|
|
452
|
+
})
|
|
453
|
+
.optional(),
|
|
454
|
+
archetype_not_found: z
|
|
455
|
+
.object({
|
|
456
|
+
requested: z.string(),
|
|
457
|
+
known: z.array(z.string()),
|
|
458
|
+
candidates: z.array(z.string()).optional(),
|
|
459
|
+
})
|
|
460
|
+
.optional(),
|
|
461
|
+
// The GameDesigns INSTANCE_OF the resolved archetype (schema 28, tools
|
|
462
|
+
// 2.1.0); c64_plan_budget takes a name as 'design'.
|
|
463
|
+
designs: z.array(BriefingDesignSchema).optional(),
|
|
464
|
+
});
|
|
465
|
+
export const CoverageSchema = z.object({
|
|
466
|
+
dimensions: z.object({
|
|
467
|
+
technique_categories: z.array(z.object({
|
|
468
|
+
category: z.string(),
|
|
469
|
+
count: z.number().int().min(0),
|
|
470
|
+
})),
|
|
471
|
+
pitfall_categories: z.array(z.object({
|
|
472
|
+
category: z.string(),
|
|
473
|
+
count: z.number().int().min(0),
|
|
474
|
+
})),
|
|
475
|
+
recipe_toolchains: z.array(z.object({
|
|
476
|
+
toolchain: z.string(),
|
|
477
|
+
count: z.number().int().min(0),
|
|
478
|
+
})),
|
|
479
|
+
kernal_coverage: z.object({
|
|
480
|
+
total_routines: z.number().int().min(0),
|
|
481
|
+
with_doc_chunks: z.number().int().min(0),
|
|
482
|
+
with_pairs_with_edge: z.number().int().min(0),
|
|
483
|
+
}),
|
|
484
|
+
}),
|
|
485
|
+
totals: z.object({
|
|
486
|
+
qdrant_chunks: z.number().int().min(0),
|
|
487
|
+
falkor_nodes: z.number().int().min(0),
|
|
488
|
+
falkor_edges: z.number().int().min(0),
|
|
489
|
+
}),
|
|
490
|
+
recent_gaps: z.array(z.object({
|
|
491
|
+
query: z.string(),
|
|
492
|
+
tool: z.string(),
|
|
493
|
+
hit_count: z.number().int().min(1),
|
|
494
|
+
last_seen: z.string(),
|
|
495
|
+
user_reported: z.number().int(),
|
|
496
|
+
})),
|
|
497
|
+
generated_at: z.string(),
|
|
498
|
+
});
|
|
499
|
+
export const SuggestLinksSchema = z.object({
|
|
500
|
+
suggestions: z.array(z.object({
|
|
501
|
+
kind: z.enum([
|
|
502
|
+
"technique_uses_register",
|
|
503
|
+
"recipe_implements_technique",
|
|
504
|
+
"pitfall_triggered_by_technique",
|
|
505
|
+
"pitfall_mitigated_by_technique",
|
|
506
|
+
]),
|
|
507
|
+
from: z.object({
|
|
508
|
+
kind: z.string(),
|
|
509
|
+
name: z.string(),
|
|
510
|
+
}),
|
|
511
|
+
to: z.object({
|
|
512
|
+
kind: z.string(),
|
|
513
|
+
name: z.string(),
|
|
514
|
+
}),
|
|
515
|
+
evidence: z.string(),
|
|
516
|
+
confidence: z.enum(["high", "medium", "low"]),
|
|
517
|
+
})),
|
|
518
|
+
generated_at: z.string(),
|
|
519
|
+
});
|
|
520
|
+
export const ReportGapSchema = z.object({
|
|
521
|
+
gap_id: z.number().int().min(1),
|
|
522
|
+
hit_count: z.number().int().min(1),
|
|
523
|
+
status: z.enum(["new", "incremented"]),
|
|
524
|
+
message: z.string(),
|
|
525
|
+
});
|
|
526
|
+
//# sourceMappingURL=tool-outputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-outputs.js","sourceRoot":"","sources":["../../src/schemas/tool-outputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tool registry's shape: one `defineTool` entry per MCP tool and one
|
|
3
|
+
* loop that registers them all with the same result wrapper.
|
|
4
|
+
*
|
|
5
|
+
* Before this file every tool was an inline `server.registerTool` call in
|
|
6
|
+
* one 748-line function, each repeating the `content` / `structuredContent`
|
|
7
|
+
* wrapper by hand.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
/** Read-only lookups, searches and briefings: they read the stores and change nothing an agent can see. */
|
|
11
|
+
export const READ_ONLY = {
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
idempotentHint: true,
|
|
14
|
+
openWorldHint: false,
|
|
15
|
+
};
|
|
16
|
+
/** The shared result wrapper. Key order matches what the inline handlers returned. */
|
|
17
|
+
function toCallToolResult(reply) {
|
|
18
|
+
return {
|
|
19
|
+
content: [{ type: "text", text: reply.text }],
|
|
20
|
+
...(reply.structured === undefined ? {} : { structuredContent: reply.structured }),
|
|
21
|
+
...(reply.isError === undefined ? {} : { isError: reply.isError }),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Wrap one tool. The SDK validates the arguments against `inputSchema`
|
|
26
|
+
* before the handler runs; the handler parses them once more with the same
|
|
27
|
+
* schema so `run` gets typed arguments without a cast (the SDK's handler
|
|
28
|
+
* type is a conditional type TypeScript cannot resolve for a generic shape).
|
|
29
|
+
* The second parse cannot fail and changes nothing: defaults are applied
|
|
30
|
+
* idempotently and no schema here transforms.
|
|
31
|
+
*/
|
|
32
|
+
export function defineTool(def) {
|
|
33
|
+
const parser = z.object(def.inputSchema);
|
|
34
|
+
return {
|
|
35
|
+
name: def.name,
|
|
36
|
+
register: (server) => {
|
|
37
|
+
server.registerTool(def.name, {
|
|
38
|
+
title: def.title,
|
|
39
|
+
description: def.description,
|
|
40
|
+
inputSchema: def.inputSchema,
|
|
41
|
+
...(def.outputSchema === undefined ? {} : { outputSchema: def.outputSchema }),
|
|
42
|
+
annotations: def.annotations,
|
|
43
|
+
}, async (args) => toCallToolResult(await def.run(parser.parse(args))));
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/** The one registration loop. */
|
|
48
|
+
export function registerTools(server, tools) {
|
|
49
|
+
for (const tool of tools)
|
|
50
|
+
tool.register(server);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=define-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define-tool.js","sourceRoot":"","sources":["../../src/server/define-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,2GAA2G;AAC3G,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,KAAK;CACrB,CAAC;AAEF,sFAAsF;AACtF,SAAS,gBAAgB,CAAC,KAAgB;IACxC,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7C,GAAG,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC;QAClF,GAAG,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;KACnE,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAA2B,GAAuB;IAC1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,CAAC,YAAY,CACjB,GAAG,CAAC,IAAI,EACR;gBACE,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,WAAW,EAAE,GAAG,CAAC,WAAW;gBAC5B,WAAW,EAAE,GAAG,CAAC,WAAW;gBAC5B,GAAG,CAAC,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC;gBAC7E,WAAW,EAAE,GAAG,CAAC,WAAW;aAC7B,EACD,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACpE,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iCAAiC;AACjC,MAAM,UAAU,aAAa,CAAC,MAAiB,EAAE,KAAiC;IAChF,KAAK,MAAM,IAAI,IAAI,KAAK;QAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy `o` without its undefined-valued keys. JSON drops those keys anyway,
|
|
3
|
+
* so what reaches a store, a log line or a client is unchanged.
|
|
4
|
+
*/
|
|
5
|
+
export function definedOnly(o) {
|
|
6
|
+
// Object.fromEntries loses the key types; the filter is what makes every kept value defined.
|
|
7
|
+
return Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=defined-only.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defined-only.js","sourceRoot":"","sources":["../../src/server/defined-only.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAoC,CAAI;IACjE,6FAA6F;IAC7F,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAmB,CAAC;AACpG,CAAC"}
|