d8ef5c53df
feat(m2): DWG/JPG floorplan underlay tabs + CAD extraction pipeline
...
Owner directives 2026-07-14~15: run the DWG pipeline; split floorplan into DWG and JPG tabs.
- tools/cad/dwg_extract.py: DWG(LibreDWG dwg2dxf) -> DXF -> layer inventory /
keyword extraction / grid-label anchor detection (ezdxf, recover fallback)
- tools/cad/render_hall_png.py: render hall-band crops from the K1 combined
plan+trench drawing (x0=293.5m, width 171m, Y bands 80.1m + 63m pitch,
single load -> multi-crop). Real trench layout confirmed: 7 horizontal runs
at ~9m pitch + central feeder (differs from assumed 6m grid seed - V61 later)
- public/media/floorplans/dwg/hall1..5.png: K1 hall underlays (3m margin crop,
deterministic calibration from render params)
- Editor left panel new tool group with JPG/DWG tabs; DWG disabled for
halls without CAD render yet (K2 pending). Canvas switches url+region.
- docs/analysis/cad-extraction.md: pipeline findings, limits (A3002 LibreDWG
crash, band-to-hall numbering direction to confirm), next steps
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 00:35:12 +09:00
b5d29e6061
fix(m5): close render completion loop — worker HTTP callback + /renders static serving
...
Worker published only Redis pub/sub events; backend status stayed QUEUED
forever (callback endpoint never called — gap masked by earlier Gemini 429).
- worker.py: POST /api/internal/render/callback (X-Worker-Token) after each
job with imageUrl=/renders/{key}, schemaHash, modelVersion, errorMessage
- backend: serve /renders/** from RENDER_OUTPUT_DIR + security permit
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 20:52:54 +09:00
0f91dcf4ae
feat(ai): ReRoomAI image-to-image booth photo restyling (M5 pipeline reuse)
...
Reference photo upload (magic-byte check, 10MB, server-named files) +
reroom render job on the existing RenderJob queue/callback/WS pipeline.
Worker gains R1 reroom mode: 4-part prompt with fixed preserve-lock
(architecture + camera perspective) and style dictionary (6 styles,
JSON single source); NL instruction injects into replace-part only.
Booth Design Studio gets a photo-mockup section with client 1024px
downscale, style cards and Before/After slider (watermark enforced).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 00:25:23 +09:00