Commit Graph
7 Commits
Author SHA1 Message Date
Andy Aragon f18bacf3ad test: add STEP export/import unit and headless E2E coverage
- Unit: cover the kernel-free helpers (shapeYawDegrees, worldAabb,
  aabbsOverlap) and the new "step" export filename.
- E2E: drive the real exportShapesToStep/importedShapeFromStep against
  the actual OpenCascade kernel (loaded from node_modules), asserting
  primitives, holes, AABB gating, cones, and import->re-export all
  conserve volume. Add tests/vitest.e2e.config.ts and a test:e2e script.
2026-06-29 15:03:32 +03:00
Formsmith c3ed07a32e Add reversible edge tools and view cube fixes 2026-06-28 16:06:01 +03:00
Formsmith 5ed0e61cb8 Revert "AI Scene Bridge (MCP)" 2026-06-26 15:31:37 +03:00
BloodSteynandClaude Opus 4.8 dee2765538 Add AI scene bridge (V1): MCP -> /api/scene -> editor
Additive fork feature letting an MCP server (driven by Claude) push parametric
WorkplaneShape[] scenes into the running SketchForge editor. The Node side never
writes browser storage; it stages a command file that an in-page poller applies
through the editor's existing updateProjectShapes() save path.

- Phase 1: apps/web/src/app/api/scene/route.ts — stages/serves commands behind the
  existing same-origin guard, with its own monotonic stagingRevision (separate from
  the app's project revision).
- Phase 2: apps/web/src/lib/sceneBridge.ts (SceneTransport seam + polling transport)
  and a useSceneBridge poller hook in page.tsx (gated on ?bridge=1), which creates
  unknown projects and hydrates via updateProjectShapes; defers while dragging.
- Phase 3: apps/mcp/ MCP server — set_scene/get_scene/add_shapes/list_kinds. zod
  validates the ShapeKind union enum + base numerics, then reuses the app's own
  sceneShape/canonicalizeShape for defaults/canonicalisation (no hand-authored ranges).
- Phase 4: docs/scene-bridge/README.md plus vitest cases for the route handler and
  the schema validator.

Staged scenes live under .codex/pending-scenes/ (gitignored). MCP registered via
.mcp.json. npm run test: 29 passing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-26 13:34:44 +02:00
Formsmith 57361a3b2a Release v0.2.0 with Docker deployment 2026-06-20 10:07:33 +03:00
Formsmith 2d0ed7ef23 checkpoint: stabilize editor geometry and workspace settings 2026-06-19 21:47:13 +03:00
Formsmith 4ba8cb723c Organize test files 2026-06-14 22:13:39 +03:00