Commit Graph
8 Commits
Author SHA1 Message Date
Formsmith 5b0ea94e7b Release SketchForge 0.5 edge tools 2026-07-05 12:28:23 +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 6dad21d58d Reference new v0.2 README screenshot 2026-06-20 14:03:34 +03:00
Formsmith 914d88e9b1 Update README editor screenshot 2026-06-20 13:58:50 +03:00
Formsmith 4b222f9884 Improve rotation handles and clean repo root 2026-06-08 22:06:30 +03:00
Formsmith 100a78597e Add first SketchForge demo video 2026-06-07 10:22:38 +03:00
Formsmith e85b47753c Expand README with media and demo guide 2026-06-07 09:18:38 +03:00