### Start app and database with dev:setup Source: https://github.com/ammaar-alam/minebench/blob/master/docs/local-development.md Runs the dev:setup script which ensures .env exists, builds the texture atlas, resets the local Docker Postgres volume, runs Prisma migrations, and starts the Next.js dev server on http://localhost:3000. ```bash pnpm dev:setup ``` -------------------------------- ### Install dependencies and set up environment Source: https://github.com/ammaar-alam/minebench/blob/master/README.md Run these commands to install dependencies, copy the environment template, and start the development setup. Requires Node.js 18+, pnpm, and Docker. ```bash pnpm install cp .env.example .env pnpm dev:setup ``` -------------------------------- ### Alternative startup without DB reset Source: https://github.com/ammaar-alam/minebench/blob/master/docs/local-development.md Use these commands to start the database, run Prisma migrations, and start the dev server without resetting the DB volume each time. ```bash pnpm db:up ``` ```bash pnpm prisma:migrate ``` ```bash pnpm dev ``` -------------------------------- ### Install dependencies with pnpm Source: https://github.com/ammaar-alam/minebench/blob/master/docs/local-development.md Run this command to install all project dependencies using pnpm. ```bash pnpm install ``` -------------------------------- ### Raw voxel.exec tool-call JSON example Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Example raw tool-call payload from examples/voxel-exec-tool-call-example.json. Shows the input schema with code, gridSize, palette, and seed. This is model output in tool mode, not yet the final expanded voxel build. ```json { "tool": "voxel.exec", "input": { "code": "...JavaScript...", "gridSize": 256, "palette": "simple", "seed": 123 } } ``` -------------------------------- ### Create env file from example Source: https://github.com/ammaar-alam/minebench/blob/master/docs/local-development.md Copies the .env.example file to .env for local configuration. ```bash cp .env.example .env ``` -------------------------------- ### Import a gallery example with pnpm gallery:import Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Publishes an existing finalized official-prompt rerun under the MineBench account. The command is read-only unless --yes is added. A confirmed import creates or reuses a saved generation, publishes it as a dated Gallery example, and marks the candidate as an official prompt. ```bash pnpm gallery:import --prompt steampunk --model gemini-3-1-pro ``` -------------------------------- ### Build spec format example Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Shows the JSON structure of the build spec that the runtime collects primitives into. The format includes version, boxes, lines, and blocks arrays. ```json { "version": "1.0", "boxes": [...], "lines": [...], "blocks": [...] } ``` -------------------------------- ### GET /sandbox Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public route for sandbox comparison between models. ```APIDOC ## GET /sandbox ### Description Compares two to four models side by side using a specified prompt. The `models` parameter preserves the order of the model keys, and invalid model or prompt values are replaced with the canonical comparison state. ### Method GET ### Endpoint /sandbox?models=openai_gpt_5_6_sol,openai_gpt_5_5_pro&promptId=cmk5zdnbr0009kx270qtc8zh3 ### Parameters #### Query Parameters - **models** (string) - Required - Comma-separated list of two to four distinct model keys, preserving order. - **promptId** (string) - Required - Identifier of the prompt to use for the comparison. ### Response #### Success Response (200) Returns the sandbox comparison page. ``` -------------------------------- ### GET /api/sandbox/benchmark Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for running sandbox benchmarks. ```APIDOC ## GET /api/sandbox/benchmark ### Description Runs a benchmark comparison for up to four models. ### Method GET ### Endpoint /api/sandbox/benchmark?promptId=&modelA=&modelB=&modelC=&modelD= ### Parameters #### Query Parameters - **promptId** (string) - Required - The prompt ID to use. - **modelA** (string) - Required - First model key. - **modelB** (string) - Required - Second model key. - **modelC** (string) - Optional - Third model key. - **modelD** (string) - Optional - Fourth model key. ### Response #### Success Response (200) Returns benchmark results. ``` -------------------------------- ### GET /api/gallery/candidates Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Lists public gallery candidates. ```APIDOC ## GET /api/gallery/candidates ### Description Lists public Gallery metadata. ### Method GET ### Endpoint /api/gallery/candidates ### Response #### Success Response (200) Returns a list of gallery candidates. ``` -------------------------------- ### GET /api/leaderboard Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for fetching the leaderboard. ```APIDOC ## GET /api/leaderboard ### Description Retrieves the global leaderboard. ### Method GET ### Endpoint /api/leaderboard ### Response #### Success Response (200) Returns leaderboard data. ``` -------------------------------- ### Import prompts in a second terminal Source: https://github.com/ammaar-alam/minebench/blob/master/README.md Run this command in a separate terminal to import prompts. This is part of the local quick start workflow. ```bash pnpm prompt --import ``` -------------------------------- ### GET /api/admin/rank-snapshots/capture Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for capturing rank snapshots. ```APIDOC ## GET /api/admin/rank-snapshots/capture ### Description Captures a rank snapshot at an optional timestamp. ### Method GET ### Endpoint /api/admin/rank-snapshots/capture?at= ### Authentication Bearer `ADMIN_TOKEN` required. ### Parameters #### Query Parameters - **at** (string) - Optional - ISO timestamp for the snapshot. ### Response #### Success Response (200) Confirms snapshot capture. ``` -------------------------------- ### GET /api/admin/status Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for system status. ```APIDOC ## GET /api/admin/status ### Description Returns admin status including queue age, failed jobs, stored bytes, pending object deletions, purge backlog, and email delivery failures. ### Method GET ### Endpoint /api/admin/status ### Authentication Bearer `ADMIN_TOKEN` required. ### Response #### Success Response (200) Returns status information. ``` -------------------------------- ### Run a script against alpha staging Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Runs an arbitrary script against the alpha environment using the staging runner. The example audits arena artifacts with deep scan and a limit of 25. ```bash pnpm staging:run tsx scripts/audit-arena-artifacts.ts --deep --limit 25 pnpm staging:prisma:migrate ``` -------------------------------- ### GET /api/arena/prompts Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for listing arena prompts. ```APIDOC ## GET /api/arena/prompts ### Description Retrieves the list of prompts used in the arena. ### Method GET ### Endpoint /api/arena/prompts ### Response #### Success Response (200) Returns a list of prompts. ``` -------------------------------- ### GET /api/arena/matchup Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for fetching arena matchups. ```APIDOC ## GET /api/arena/matchup ### Description Retrieves an arena matchup, optionally filtered by prompt ID. ### Method GET ### Endpoint /api/arena/matchup?promptId= ### Parameters #### Query Parameters - **promptId** (string) - Optional - Filter matchups by prompt ID. ### Response #### Success Response (200) Returns matchup data. ``` -------------------------------- ### GET /leaderboard/{modelKey} Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public route for viewing a model's leaderboard. ```APIDOC ## GET /leaderboard/{modelKey} ### Description Displays the leaderboard for a specific model. Invalid or model-mismatched build IDs are removed while the model page remains visible. ### Method GET ### Endpoint /leaderboard/anthropic_claude_opus_5?build=cms0r3yrd001al7adwbzwha24 ### Parameters #### Path Parameters - **modelKey** (string) - Required - The model key for the leaderboard. #### Query Parameters - **build** (string) - Optional - Build ID to filter the leaderboard. ### Response #### Success Response (200) Returns the leaderboard page for the specified model. ``` -------------------------------- ### GET /api/admin/gallery/purge Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for purging gallery data. ```APIDOC ## GET /api/admin/gallery/purge ### Description Purges gallery data. Accepts `ADMIN_TOKEN` or `CRON_SECRET` and is scheduled daily. ### Method GET ### Endpoint /api/admin/gallery/purge ### Authentication Bearer `ADMIN_TOKEN` or `CRON_SECRET` required. ### Response #### Success Response (200) Confirms purge. ``` -------------------------------- ### GET /api/gallery/candidates/{publicId} Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Fetches a specific gallery candidate. ```APIDOC ## GET /api/gallery/candidates/{publicId} ### Description Returns a gallery candidate and cursor-paginated examples. ### Method GET ### Endpoint /api/gallery/candidates/$PUBLIC_ID ### Parameters #### Path Parameters - **publicId** (string) - Required - The public ID of the candidate. ### Response #### Success Response (200) Returns candidate details and examples. ``` -------------------------------- ### Publish a model to production Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Publishes the reviewed model to production. Reads the same uploads/ files as the alpha publish, producing byte-identical checksum-addressed artifacts. Ratings do not carry over; production starts from the standard baseline. ```bash pnpm model:publish --model # publish to production ``` -------------------------------- ### GET /api/generations/{generationId}/download Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Downloads the canonical JSON for a generation. ```APIDOC ## GET /api/generations/{generationId}/download ### Description Redirects to the canonical JSON stored in private Storage. ### Method GET ### Endpoint /api/generations/$GENERATION_ID/download ### Parameters #### Path Parameters - **generationId** (string) - Required - The ID of the generation. ### Response #### Success Response (302) Redirects to the private storage URL. ``` -------------------------------- ### GET /api/generations/{generationId} Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Reads a specific saved generation. ```APIDOC ## GET /api/generations/{generationId} ### Description Reads a single owned generation. ### Method GET ### Endpoint /api/generations/$GENERATION_ID ### Parameters #### Path Parameters - **generationId** (string) - Required - The ID of the generation. ### Response #### Success Response (200) Returns the generation details. ``` -------------------------------- ### GET /api/generations Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Lists saved generations for the current account. ```APIDOC ## GET /api/generations ### Description Lists the current account's saved generation jobs and results. ### Method GET ### Endpoint /api/generations ### Response #### Success Response (200) Returns a list of generation jobs and results. ``` -------------------------------- ### Query Prisma table with quoted identifier Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Example of querying Prisma tables manually in Postgres. Prisma creates quoted PascalCase table names, so use quoted identifiers like "Prompt" in queries. ```sql select count(*) from public."Prompt"; ``` -------------------------------- ### Import a converted build into the local database Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md For larger production payloads, the recommended path is pnpm batch:generate --upload ... with Supabase Storage enabled. ```bash curl -sS -X POST "http://localhost:3000/api/admin/import-build?modelKey=openai_gpt_5_2_pro&promptText=$(node -p 'encodeURIComponent(process.argv[1])' 'A medieval stone castle')&overwrite=1" \ -H "Authorization: Bearer $ADMIN_TOKEN" \ --data-binary "@uploads/castle/castle-gpt-5-2-pro.json" ``` -------------------------------- ### Import Local JSON Files from uploads/ Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Use pnpm prompt to import local JSON files from the uploads/ directory. The --import flag triggers the import, and --overwrite allows overwriting existing prompts. The --init flag creates a new prompt folder scaffold with the given prompt text. ```bash pnpm prompt pnpm prompt --import pnpm prompt --import --overwrite ``` ```bash pnpm prompt --init --prompt arcade --text "A classic arcade cabinet with ..." ``` -------------------------------- ### Generate and publish model cohort Source: https://github.com/ammaar-alam/minebench/blob/master/docs/adding-a-model.md Generates the 15-prompt cohort, previews the publish plan, then publishes the model. Publication uploads the cohort, runs maintenance, verifies artifact coverage, and activates the model only after verification passes. ```bash pnpm batch:generate --generate --model gpt-5-7-sol # generate the 15-prompt cohort ``` ```bash pnpm model:publish --model gpt-5-7-sol --dry-run # report the publish plan ``` ```bash pnpm model:publish --model gpt-5-7-sol # upload, artifacts, verify, activate ``` -------------------------------- ### WorldEdit schematic load and paste workflow Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Typical WorldEdit flow: place the .schem file in the schematics folder (path varies by platform), run //schem load , then //paste to place the build. ```text 1. Put the downloaded file in the WorldEdit schematics folder. - Bukkit, Spigot, Paper: plugins/WorldEdit/schematics - Fabric, Forge, NeoForge: config/worldedit/schematics 2. Run //schem load 3. Stand where the build should appear and run //paste ``` -------------------------------- ### Batch generation CLI options Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Shows all available options for the batch generation CLI. Use --generate to create missing files, --notools to skip voxel.exec tool mode, --upload to upload existing files to production, and combine flags with --prompt and --model filters. Build files are written under uploads//. ```bash pnpm batch:generate # status only pnpm batch:generate # generate missing files pnpm batch:generate --generate # generate without voxel.exec tool mode pnpm batch:generate --generate --notools # upload existing files to production pnpm batch:generate --upload # generate + upload with prompt/model filters pnpm batch:generate --generate --upload --prompt castle --model sonnet # all options pnpm batch:generate --help ``` -------------------------------- ### Seed Curated Prompts and Generate Missing Builds via API Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Requires ADMIN_TOKEN set in .env and a running dev server. At least one provider key (OPENROUTER_API_KEY or direct provider key) must be configured for generation. The commands check status, seed prompts and model catalog, perform a dry run, generate missing builds in batches, and capture leaderboard rank snapshots. ```bash # status curl -sS "http://localhost:3000/api/admin/status" \ -H "Authorization: Bearer $ADMIN_TOKEN" # prompts + model catalog only (no generation) curl -sS -X POST "http://localhost:3000/api/admin/seed?generateBuilds=0" \ -H "Authorization: Bearer $ADMIN_TOKEN" # dry run curl -sS -X POST "http://localhost:3000/api/admin/seed?dryRun=1" \ -H "Authorization: Bearer $ADMIN_TOKEN" # generate missing builds in batches (repeat until done=true) curl -sS -X POST "http://localhost:3000/api/admin/seed?batchSize=2" \ -H "Authorization: Bearer $ADMIN_TOKEN" # capture current leaderboard rank snapshot (hourly cadence recommended) curl -sS -X POST "http://localhost:3000/api/admin/rank-snapshots/capture" \ -H "Authorization: Bearer $ADMIN_TOKEN" ``` -------------------------------- ### Convert raw provider output with pnpm tool:convert Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Use the CLI utility when you have raw OpenAI, Anthropic, or direct tool-envelope JSON. Accepted inputs include direct tool envelopes, raw function arguments, OpenAI Chat/Responses tool-call payloads, and Anthropic tool_use blocks. ```bash pnpm tool:convert --in docs/examples/voxel-exec-tool-call-example.json pnpm tool:convert --in openai-response.json --out uploads/castle/castle-gpt-5-2-pro.json cat anthropic-response.json | pnpm tool:convert --out /tmp/build.json pnpm tool:convert --in raw.json --expanded ``` -------------------------------- ### List WorldEdit schematics with //schem list Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Alternative command to list schematics in WorldEdit. Use this if the single-slash version is not recognized. ```text //schem list ``` -------------------------------- ### Local staging environment variables in .env.staging.local Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Defines the local credentials for staging tooling. The file is git-ignored. STAGING_SITE_URL is required by every staging command. STAGING_ADMIN_TOKEN and STAGING_SUPABASE_STORAGE_BUCKET are optional; the latter defaults to SUPABASE_STORAGE_BUCKET. ```plaintext STAGING_DIRECT_URL= # alpha branch direct Postgres connection STAGING_DATABASE_URL= # alpha branch pooled connection (what the deployment uses) STAGING_SITE_URL= # alpha deployment URL, required by every staging: command STAGING_SUPABASE_URL= STAGING_SUPABASE_SERVICE_ROLE_KEY= STAGING_SUPABASE_PUBLISHABLE_KEY= STAGING_STEALTH_CONFIG_ENCRYPTION_KEY= STAGING_CUSTOM_BUILD_KEY_ENCRYPTION_SECRET= # STAGING_ADMIN_TOKEN= (only when alpha uses its own branch-scoped ADMIN_TOKEN) # STAGING_SUPABASE_STORAGE_BUCKET= (defaults to SUPABASE_STORAGE_BUCKET) ``` -------------------------------- ### Refresh staging database and sync storage Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Seed the staging database and sync storage after provisioning. The --yes flag skips confirmation prompts. ```bash pnpm staging:db:refresh --yes pnpm staging:storage:sync ``` -------------------------------- ### Server-side WorldEdit import commands Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Recommended server commands for importing a schematic with WorldEdit. Use the filename without .schem in the load command. //paste -a skips air blocks and is safer when pasting into a world with existing terrain. ```text //schem list //schem load minebench-file-name //paste -a ``` -------------------------------- ### Create alpha branch from master Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Create a local alpha branch from master and push it to origin, setting the upstream. This is part of one-time provisioning. ```bash git branch alpha master && git push -u origin alpha ``` -------------------------------- ### POST /api/admin/import-build Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for importing builds. ```APIDOC ## POST /api/admin/import-build ### Description Imports a build with specified model, prompt, grid size, palette, mode, and overwrite flag. The body can be raw voxel JSON (legacy) or a storage envelope. ### Method POST ### Endpoint /api/admin/import-build?modelKey=...&promptId=...|promptText=...&gridSize=256&palette=simple&mode=precise&overwrite=1 ### Authentication Bearer `ADMIN_TOKEN` required. ### Parameters #### Query Parameters - **modelKey** (string) - Required - The model key. - **promptId** (string) - Optional - The prompt ID (alternative to promptText). - **promptText** (string) - Optional - The prompt text (alternative to promptId). - **gridSize** (number) - Required - Grid size (e.g., 256). - **palette** (string) - Required - Palette name (e.g., simple). - **mode** (string) - Required - Mode (e.g., precise). - **overwrite** (boolean) - Optional - If set to 1, overwrites existing build. #### Request Body - **storage** (object) - Optional - Storage envelope with bucket, path, and encoding. - **bucket** (string) - Required - Storage bucket name. - **path** (string) - Required - Storage path. - **encoding** (string) - Required - Encoding type (e.g., gzip). ### Response #### Success Response (200) Confirms import. ``` -------------------------------- ### Generate benchmark files with or without tool mode Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Tool mode is the default. --notools is a fallback path for debugging or direct-output comparisons. ```bash pnpm batch:generate --generate pnpm batch:generate --generate --notools pnpm batch:generate --generate --prompt castle --model sonnet ``` -------------------------------- ### List WorldEdit schematics with /schem list Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Use /schem list to see available schematics in the WorldEdit folder. The output shows the name to load, usually without the .schem extension. ```text /schem list ``` -------------------------------- ### Run arena load test with pnpm arena:load Source: https://github.com/ammaar-alam/minebench/blob/master/docs/local-development.md Runs the arena load harness against a local or preview deployment. The first targets a local server with 12 users for 90 seconds; the second targets a Vercel preview URL with 16 users for 120 seconds. Use the preview URL for the most realistic production test. ```bash pnpm arena:load --base-url http://localhost:3000 --users 12 --duration 90 ``` ```bash pnpm arena:load --base-url https://your-preview-url.vercel.app --users 16 --duration 120 ``` -------------------------------- ### Publish a model to alpha only Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Publishes a newly benchmarked model into the alpha environment only, running the full publish pipeline against alpha. The model becomes live on the alpha site but absent from production, allowing private review. ```bash pnpm staging:publish --model # publish into alpha only ``` -------------------------------- ### Client-side testing commands Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Useful commands while testing client-side singleplayer imports. These help undo pastes, switch to creative mode, disable mob spawning, set the time to day, and clear weather. ```text //undo /gamemode creative /gamerule doMobSpawning false /time set day /weather clear ``` -------------------------------- ### Import External Model Output Directly Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Use this curl command to import JSON from ChatGPT web or other tools. The modelKey and promptText are passed as query parameters, and the JSON file is sent as the request body. For large payloads (50MB+), use the batch uploader with Supabase Storage enabled. ```bash curl -sS -X POST "http://localhost:3000/api/admin/import-build?modelKey=openai_gpt_5_2_pro&promptText=$(node -p 'encodeURIComponent(process.argv[1])' 'A medieval stone castle')&overwrite=1" \ -H "Authorization: Bearer $ADMIN_TOKEN" \ --data-binary "@uploads/castle/castle-gpt-5-2-pro.json" ``` ```bash pnpm batch:generate --upload --prompt castle --model gpt-5-2-pro ``` -------------------------------- ### Refresh alpha database and storage from production Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Refreshes the alpha staging database from a production dump and syncs missing storage objects. The DB refresh requires --yes and refuses to run when staging host matches production. Storage sync is incremental; use --force to re-copy and --prefix

to scope to one artifact family. ```bash pnpm staging:db:refresh --yes # pg_dump prod -> drop + restore alpha public schema pnpm staging:storage:sync # copy missing bucket objects prod -> alpha ``` -------------------------------- ### Arena delivery and rendering flowchart Source: https://github.com/ammaar-alam/minebench/blob/master/docs/architecture.md Flowchart for arena delivery and rendering. It shows how matchup shells route to initial or full requests, then to a build route that validates blind tokens and chooses between MBA4/MBV4 or MBF1 based on block count. The chosen path decodes and feeds a priority mesh worker that produces a shared mesh payload for Three.js rendering and reveal animation. ```mermaid flowchart TD MATCHUP["Matchup shell
blind refs + load hints"] --> INITIAL["Initial variant request
preview or full"] MATCHUP --> FULL["Authoritative full request
format=mbf1"] INITIAL --> ROUTE["Build route"] FULL --> ROUTE ROUTE --> TOKEN["Validate blind token
and resolve artifact"] TOKEN --> CHOOSE{"Full build
≥ 150,000 blocks?"} CHOOSE -- no --> MBA4["MBA4 / MBV4"] CHOOSE -- yes --> MBF1["Identity-free MBF1"] MBA4 --> DECODE["Decode to packed blocks"] MBF1 --> FACTDECODE["Decode blocks + mesh facts"] DECODE --> WORKER["Priority mesh worker
spatial lookup, visibility, AO"] FACTDECODE --> FASTWORKER["Priority mesh worker
expand supplied visibility + AO"] WORKER --> GEOMETRY["Shared mesh payload
materials, vertices, indices"] FASTWORKER --> GEOMETRY GEOMETRY --> THREE["Three.js group + camera fit"] THREE --> FRAME["First rendered frame"] FRAME --> REVEAL["Reveal animation"] ``` -------------------------------- ### FAWE import commands Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md FAWE import commands, intentionally similar to WorldEdit. Use FAWE for large public-server imports when the schematic volume is several million cells or more, when standard WorldEdit freezes the server, or when you need safer queueing, history, or async paste behavior. Exact permissions and queue behavior depend on the server platform and FAWE configuration. ```text //schem load minebench-file-name //paste -a ``` -------------------------------- ### Promote alpha to master with fast-forward merge Source: https://github.com/ammaar-alam/minebench/blob/master/docs/staging.md Run these commands to promote the alpha branch to master. The merge uses --ff-only to ensure the exact validated SHAs are promoted without creating a merge commit. ```bash git checkout master git merge --ff-only alpha git push ``` -------------------------------- ### Client-side WorldEdit import commands Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Import commands for client-side singleplayer WorldEdit. Use the filename without .schem in the load command. //paste -a skips air blocks and is safer when pasting into a world with existing terrain; use plain //paste only when you want schematic air to clear the destination volume. ```text /schem list /schem load minebench-file-name //paste -a ``` -------------------------------- ### POST /api/gallery/candidates Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Submits a new gallery candidate. ```APIDOC ## POST /api/gallery/candidates ### Description Submits an exact prompt or an owned successful generation as a gallery candidate. ### Method POST ### Endpoint /api/gallery/candidates ### Response #### Success Response (200) Confirms submission. ``` -------------------------------- ### Run validation checks Source: https://github.com/ammaar-alam/minebench/blob/master/docs/adding-a-model.md Runs lint, tests, and build to validate the model addition before publishing. ```bash pnpm check # lint, test, build ``` -------------------------------- ### Apply worker and disk alarms with put-metric-alarm Source: https://github.com/ammaar-alam/minebench/blob/master/docs/cloudwatch-monitoring.md Run these commands from the repository root to create or update the MineBench-WorkerUnavailable and MineBench-HighDisk alarms. They use the AWS CLI with the minebench profile and us-east-1 region, reading JSON definitions from the docs/cloudwatch directory. Both alarms send notifications only; they do not restart the worker or delete files. ```bash aws cloudwatch put-metric-alarm --profile minebench --region us-east-1 --cli-input-json file://docs/cloudwatch/worker-unavailable.json aws cloudwatch put-metric-alarm --profile minebench --region us-east-1 --cli-input-json file://docs/cloudwatch/high-disk.json ``` -------------------------------- ### POST /api/admin/rank-snapshots/capture Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for capturing rank snapshots via POST. ```APIDOC ## POST /api/admin/rank-snapshots/capture ### Description Captures a rank snapshot at an optional timestamp. ### Method POST ### Endpoint /api/admin/rank-snapshots/capture?at= ### Authentication Bearer `ADMIN_TOKEN` required. ### Parameters #### Query Parameters - **at** (string) - Optional - ISO timestamp for the snapshot. ### Response #### Success Response (200) Confirms snapshot capture. ``` -------------------------------- ### Server-side WorldEdit schematics folders Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Common server schematics folders for server-side WorldEdit imports. Use the path for your server platform when copying a .schem file into the server schematics folder. ```text Bukkit, Spigot, Paper: plugins/WorldEdit/schematics Fabric, Forge, NeoForge server: config/worldedit/schematics ``` -------------------------------- ### Register a model in modelCatalog.ts Source: https://github.com/ammaar-alam/minebench/blob/master/docs/adding-a-model.md Add this entry to the CATALOG in lib/ai/modelCatalog.ts to register a new model. The modelId is the provider's native ID, openRouterModelId is the alternate route, and slug names build artifacts and is what --model accepts. Set forceOpenRouter or importOnly as needed. ```ts { key: "openai_gpt_5_7_sol", provider: "openai", modelId: "gpt-5.7-sol", displayName: "GPT 5.7 Sol Pro", enabled: true, slug: "gpt-5-7-sol", openRouterModelId: "openai/gpt-5.7-sol-pro", } ``` -------------------------------- ### Execute tool code locally through the dev API Source: https://github.com/ammaar-alam/minebench/blob/master/docs/voxel-exec-raw-output.md Useful for testing a small tool payload against the same runtime used by the app. In development this endpoint is enabled by default; in production it is disabled unless MINEBENCH_ENABLE_LOCAL_EXEC_API=1. ```bash curl -sS -X POST "http://localhost:3000/api/local/voxel-exec" \ -H "Content-Type: application/json" \ --data '{"code":"box(20,0,20,44,8,44,\"stone\");","gridSize":64,"palette":"simple","seed":123}' ``` -------------------------------- ### Client-side WorldEdit schematics folders Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Common schematics folders for client-side singleplayer WorldEdit imports. Use the path for your operating system when moving a MineBench .schem file into the WorldEdit schematics folder. ```text macOS: ~/Library/Application Support/minecraft/config/worldedit/schematics Windows: %APPDATA%\.minecraft\config\worldedit\schematics Linux: ~/.minecraft/config/worldedit/schematics ``` -------------------------------- ### POST /api/gallery/reports Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Records a gallery report. ```APIDOC ## POST /api/gallery/reports ### Description Records a report from authoritative server-loaded content. ### Method POST ### Endpoint /api/gallery/reports ### Response #### Success Response (200) Confirms report recording. ``` -------------------------------- ### Paste schematic without air cells using //paste -a Source: https://github.com/ammaar-alam/minebench/blob/master/docs/build-export-import.md Use //paste -a to avoid clearing terrain. Plain //paste includes air cells from the bounding box, which can clear terrain around the build. ```text //paste -a ``` -------------------------------- ### Add output ceiling entry Source: https://github.com/ammaar-alam/minebench/blob/master/docs/adding-a-model.md Add an entry to the OUTPUT_CEILINGS group in lib/ai/modelRequestProfiles.ts when the model accepts more or less than the MineBench default request. One ID is enough because a lookup on either the native or OpenRouter ID resolves through the catalog to the other. ```ts { tokens: 200_000, ids: ["gpt-5.7-sol"] }, ``` -------------------------------- ### POST /api/generate Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for generating model outputs with streaming response. ```APIDOC ## POST /api/generate ### Description Generates a model output based on the provided prompt and configuration. Returns a stream of events in NDJSON format. ### Method POST ### Endpoint /api/generate ### Parameters #### Request Body - **prompt** (string) - Required - The prompt for generation. - **gridSize** (number) - Required - The grid size for the generation. - **palette** (string) - Required - The color palette to use. - **modelKeys** (array) - Required - List of model keys to use. - **providerKeys** (array) - Optional - List of provider keys. ### Response #### Success Response (200) Returns an `application/x-ndjson` stream with events: `hello`, `start`, `retry`, `delta`, `result`, `error`, `ping`. ``` -------------------------------- ### POST /api/admin/seed Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Admin endpoint for seeding data. ```APIDOC ## POST /api/admin/seed ### Description Seeds the database with test data. Supports dry run and batch size parameters. ### Method POST ### Endpoint /api/admin/seed?dryRun=1&generateBuilds=0&batchSize=2 ### Authentication Bearer `ADMIN_TOKEN` required. ### Parameters #### Query Parameters - **dryRun** (boolean) - Optional - If set to 1, performs a dry run without persisting changes. - **generateBuilds** (boolean) - Optional - If set to 0, skips build generation. - **batchSize** (number) - Optional - Number of items to process per batch. ### Response #### Success Response (200) Confirms seeding operation. ``` -------------------------------- ### POST /api/generations Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Creates a new saved generation job. ```APIDOC ## POST /api/generations ### Description Creates one durable job per selected model for saved generations. ### Method POST ### Endpoint /api/generations ### Response #### Success Response (200) Returns the created generation jobs. ``` -------------------------------- ### Voxel Build JSON Output Format Source: https://github.com/ammaar-alam/minebench/blob/master/docs/chatgpt-web-voxel-prompt.md The required JSON output format for a voxel build. Always include boxes and lines fields, using empty arrays if none. Coordinates are integers in [0,63] with Y as vertical and ground at Y=0. ```json { "version": "1.0", "boxes": [{ "x1": 0, "y1": 0, "z1": 0, "x2": 10, "y2": 5, "z2": 10, "type": "block_id" }], "lines": [{ "from": {"x": 0, "y": 0, "z": 0}, "to": {"x": 0, "y": 10, "z": 0}, "type": "block_id" }], "blocks": [{ "x": 0, "y": 0, "z": 0, "type": "block_id" }] } ``` -------------------------------- ### Add reasoning ladder rule Source: https://github.com/ammaar-alam/minebench/blob/master/docs/adding-a-model.md Add or extend a rule in the EFFORT_LADDER_RULES table in lib/ai/reasoningProfiles.ts. Exact ids win over prefixes, and prefix rules match in array order, so a new release's rule must sit above its broader family rule. The direct OpenAI adapter's default ladder also resolves from this table. ```ts { ids: ["gpt-5.7-sol", "openai/gpt-5.7-sol-pro"], ladder: ["max", "xhigh", "high"] }, ``` -------------------------------- ### Voxel Build JSON Schema Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Defines the structure for voxel build JSON with version, boxes, lines, and blocks arrays. Used as the final artifact format for all runtime model generations. ```json { "version": "1.0", "boxes": [ { "x1": 10, "y1": 0, "z1": 10, "x2": 20, "y2": 6, "z2": 20, "type": "stone" } ], "lines": [ { "from": { "x": 15, "y": 7, "z": 15 }, "to": { "x": 15, "y": 18, "z": 15 }, "type": "oak_log" } ], "blocks": [ { "x": 15, "y": 19, "z": 15, "type": "glowstone" } ] } ``` -------------------------------- ### POST /api/arena/vote Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Public endpoint for voting in arena matchups. ```APIDOC ## POST /api/arena/vote ### Description Submits a vote for an arena matchup. ### Method POST ### Endpoint /api/arena/vote ### Parameters #### Request Body - **matchupId** (string) - Required - The ID of the matchup. - **choice** (string) - Required - The vote choice: `A`, `B`, `TIE`, or `BOTH_BAD`. ### Response #### Success Response (200) Confirms the vote submission. ``` -------------------------------- ### PUT /api/gallery/candidates/{publicId}/vote Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Votes on a gallery candidate. ```APIDOC ## PUT /api/gallery/candidates/{publicId}/vote ### Description Reversibly updates the current visitor's vote on a gallery candidate. ### Method PUT ### Endpoint /api/gallery/candidates/$PUBLIC_ID/vote ### Parameters #### Path Parameters - **publicId** (string) - Required - The public ID of the candidate. ### Response #### Success Response (200) Confirms vote update. ``` -------------------------------- ### POST /api/generations/{generationId}/cancel Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Cancels an active generation job. ```APIDOC ## POST /api/generations/{generationId}/cancel ### Description Intentionally cancels active work for a generation. ### Method POST ### Endpoint /api/generations/$GENERATION_ID/cancel ### Parameters #### Path Parameters - **generationId** (string) - Required - The ID of the generation. ### Response #### Success Response (200) Confirms cancellation. ``` -------------------------------- ### Confidence indicator transformation formula Source: https://github.com/ammaar-alam/minebench/blob/master/docs/arena-ranking-system.md Formula used to compute the displayed confidence indicator from the 95% confidence interval width. It bounds the result between 10 and 99, and reduces the interval width by a factor of 0.85 before applying a minimum of 90. ```text round(max(10, min(99, 100 - min(90, CI95 * 0.85)))) ``` -------------------------------- ### DELETE /api/generations/{generationId} Source: https://github.com/ammaar-alam/minebench/blob/master/docs/operations.md Deletes a specific saved generation. ```APIDOC ## DELETE /api/generations/{generationId} ### Description Removes an owned generation. ### Method DELETE ### Endpoint /api/generations/$GENERATION_ID ### Parameters #### Path Parameters - **generationId** (string) - Required - The ID of the generation. ### Response #### Success Response (200) Confirms deletion. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.