chisel/wrangler.jsonc
maverick 974e26f592 Chisel v0 — AI CAD single-shot generator
Chat → Claude writes a JSCAD script → sandboxed Web Worker executes it →
live three.js preview + STL export. Parametric // @param comments become
live sliders. Server-side repair loop fixes geometry errors before the user
sees them.

- src/worker: Hono API, Claude orchestration (prompt-cached system prompt),
  /api/generate + /api/repair
- src/client: React + react-three-fiber viewport, JSCAD engine Web Worker
- Radical-branded (red #FF2D55 on #0B0B09, Syne + IBM Plex Mono)

Engine validated end-to-end: mug model → 3256-triangle valid binary STL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-25 00:03:38 +10:00

22 lines
686 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "chisel",
"main": "src/worker/index.ts",
"compatibility_date": "2025-07-01",
"compatibility_flags": ["nodejs_compat"],
"observability": { "enabled": true },
"build": {
"command": "npm run build:client"
},
"routes": [
{ "pattern": "chisel.theradicalparty.com", "custom_domain": true }
],
"assets": {
"directory": "./public",
"binding": "ASSETS",
"not_found_handling": "single-page-application",
"run_worker_first": ["/api/*"]
}
// ANTHROPIC_API_KEY is set via: wrangler secret put ANTHROPIC_API_KEY
// v2: add a Container binding here for the build123d / STEP engine.
}