- Fix param sliders: Viewer now fits camera once per design (fitKey), not on every param change — size changes are visible again. Better slider ranges. - Progress UX: full-stage overlay with spinning cube + pipeline stepper, animated thinking dots in chat, send-button spinner, staged status. - B (vision verify): capture canvas → /api/verify (Claude vision) → auto-refine one pass on mismatch. Fail-open so a flaky judge never blocks. - C (persistence): D1 designs table + anonymous cookie identity, save/load/list, designs drawer, autosave, shareable ids. no-store on all /api responses. - D (STEP scaffold): /api/step + build123d prompt + service client (step.ts), Download STEP button. Needs STEP_SERVICE_URL to go live. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
898 B
JSON
30 lines
898 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/*"]
|
|
},
|
|
"d1_databases": [
|
|
{
|
|
"binding": "DB",
|
|
"database_name": "chisel",
|
|
"database_id": "3838ec37-45b2-44e3-b31a-a12a138400ff",
|
|
"migrations_dir": "migrations"
|
|
}
|
|
]
|
|
// ANTHROPIC_API_KEY is set via: wrangler secret put ANTHROPIC_API_KEY
|
|
// STEP_SERVICE_URL (build123d STEP engine) set via: wrangler secret put STEP_SERVICE_URL
|
|
}
|