Commit Graph
64 Commits
Author SHA1 Message Date
Francisco Rivero 733d1bea8d Merge remote-tracking branch 'origin/main' into codex/screw-hole-cutters
# Conflicts:
#	apps/web/src/components/WorkplaneViewport.tsx
2026-07-14 01:26:38 +09:00
Francisco Rivero 737fe14a41 feat: add metric screw hole cutters 2026-07-14 01:16:45 +09:00
Formsmith 20731043e4 release: publish v0.6.0 2026-07-11 20:34:13 +03:00
Formsmith 458538d3d4 docs: remove project layout and status sections 2026-07-10 23:19:21 +03:00
Formsmith 0c53cf41e2 chore: restore standard MIT license 2026-07-10 23:14:21 +03:00
Formsmith f91aa2fe9c ci: prevent stalled multi-platform Docker builds 2026-07-10 22:48:26 +03:00
Formsmith 431538c541 chore: adopt MIT license with Commons Clause 2026-07-10 22:08:41 +03:00
Formsmith f114ddda5f Merge pull request #18 from franadoriv/feature/svg-import-extrusion
Add SVG import extrusion
2026-07-07 20:48:29 +03:00
Formsmith d37a11964e docs: add GitHub Sponsors badge 2026-07-07 20:37:24 +03:00
Francisco Rivero fd76c5bd96 Add SVG import extrusion 2026-07-07 23:59:36 +09:00
Formsmith 4d2d59cb94 docs: add SketchForge MCP skill instructions 2026-07-05 14:34:04 +03:00
Formsmith 79447815bb Merge pull request #15 from tystuyfzand/feature/prebuilt-docker
Provide pre-built Docker image publishing and GHCR compose usage.
2026-07-05 13:14:32 +03:00
Formsmith 57dcc10867 fix: allow Docker static export with MCP route 2026-07-05 13:05:09 +03:00
Formsmith 2b7a885959 fix: use lowercase GHCR image path 2026-07-05 12:56:37 +03:00
Formsmith 5b0ea94e7b Release SketchForge 0.5 edge tools 2026-07-05 12:28:23 +03:00
Tyler 53fc71930a [chore] Add README for compose ghcr variant 2026-07-05 01:44:56 -04:00
Tyler 2bd40b9e01 [feature] Add prebuilt docker images 2026-07-05 01:41:54 -04:00
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
Andy Aragon a0fa3559b3 feat: enable cone STEP export and harden kernel load
Bump occt-wasm 3.6.0 -> 3.6.1, which fixes the multi-solid STEP writer
that dropped a cone's lateral CONICAL_SURFACE. Verified end-to-end: a
cone keeps its full surface and exact volume in a multi-solid assembly,
so cones now map to exact B-Rep alongside box/cylinder/sphere.

- Add "cone" to EXACT_KINDS and restore the cone build branch
  (full and truncated cones, honoring resized footprint).
- Drop the obsolete cone-bug skip and its special-cased reason string.
- brepKernel: clear the cached promise on a failed load so a transient
  kernel fetch failure can be retried instead of poisoning the session.
- Update the export panel copy to list cones as exact geometry.
2026-06-29 15:03:32 +03:00
Andy Aragon 80b12ee9f7 feat: add B-Rep STEP import with exact round-trip
Import STEP/STP files as tessellated mesh bodies (Tier 1) while retaining
each body's exact OpenCascade B-Rep, normalized to the body's local frame
(lib/stepImport). On STEP export, re-emit imported bodies from that stored
B-Rep with the editor's placement reapplied via rigid kernel ops: rigid and
uniform-scaled placements stay exact analytic geometry, and non-uniform
resize degrades to valid B-splines (Tier 2). Closes import -> edit -> export.

A shared lazy occt-wasm loader (lib/brepKernel) is reused by import and
export so the kernel loads at most once per session, on first use.
2026-06-29 15:03:32 +03:00
Andy Aragon b292cc14eb feat: add B-Rep STEP export via brepjs + OpenCascade
Reconstruct parametric box/cylinder/sphere shapes as exact OpenCascade
B-Rep solids and write a named, colored multi-body STEP assembly, cutting
holes via boolean subtraction (only against bodies they overlap). brepjs
and the 22 MB occt-wasm kernel load lazily on first export, so the initial
bundle is unchanged.

Unsupported shape kinds are skipped with an in-app notice. Cones are exact
in the kernel but skipped pending an upstream occt-wasm multi-solid STEP
writer fix that drops conical surfaces.

occt-wasm runtime is staged into public/occt by scripts/copy-occt-wasm.mjs
(gitignored) and loaded outside the bundler; the optional brepkit /
opencascade kernel backends are aliased away in next.config.
2026-06-29 15:03:32 +03:00
Formsmith a4901007b9 Improve setup instructions for beginners 2026-06-28 16:25:08 +03:00
Formsmith c3ed07a32e Add reversible edge tools and view cube fixes 2026-06-28 16:06:01 +03:00
Formsmith 7c93f627a0 Merge pull request #11 from Formsmith746/revert-8-main
Revert "AI Scene Bridge (MCP)"
2026-06-26 22:13:05 +03:00
Formsmith 5ed0e61cb8 Revert "AI Scene Bridge (MCP)" 2026-06-26 15:31:37 +03:00
Formsmith a525626607 Merge pull request #8 from BloodSteyn/main
AI Scene Bridge (MCP)
2026-06-26 15:20:36 +03:00
BloodSteynandClaude Opus 4.8 4406cf126c docs: document the AI scene bridge (MCP) in the root README
Add a feature bullet, an "AI Scene Bridge (MCP)" section (enable bridge mode,
connect the MCP server, tools table, example prompt), and project-layout entries
for apps/mcp, the scene route, and docs/scene-bridge.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-26 13:49:57 +02: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
BloodSteyn d99fc1e650 Claude.md added
Adding Claude to this project to assist in creating an MCP
2026-06-26 12:13:36 +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 5ddd514fb7 Organize Docker deployment files 2026-06-20 10:18:54 +03: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 272fac5069 Remove obsolete shapes sidebar 2026-06-19 10:41:17 +03:00
Formsmith 8174e5560d Add Boolean Intersection and refresh toolbar icons 2026-06-19 10:37:32 +03:00
Formsmith 648d520422 Add toolbar buttons ruler and cut previews 2026-06-18 08:56:40 +03:00
Formsmith 66023aab7c Anchor inspector resize edits 2026-06-15 12:56:23 +03:00
Formsmith 5d9d14c714 Fix local project thumbnails 2026-06-15 12:31:22 +03:00
Formsmith 29a8d5adab Resize README header logo 2026-06-14 22:15:59 +03:00
Formsmith 4ba8cb723c Organize test files 2026-06-14 22:13:39 +03:00
Formsmith 753a1c2833 Add workspace editor tools 2026-06-14 22:08:55 +03:00
Formsmith 9a889fdcb7 Restore live demo README badge 2026-06-13 16:18:02 +03:00
Formsmith 0401267f7d Remove Vercel link from local README 2026-06-13 16:16:00 +03:00
Formsmith 962559f582 Show dimensions for primitive inspectors 2026-06-13 15:56:06 +03:00
Formsmith 7457c94581 Persist project workspace settings 2026-06-13 10:26:40 +03:00
Formsmith f1d914e2c3 Extract workplane overlay components 2026-06-13 09:33:10 +03:00
Formsmith a54ccfb0cf Pin rotation wheel during drag 2026-06-13 09:13:15 +03:00
Formsmith 4abe6c1d9d Prevent project sync echo from rehydrating editor 2026-06-13 09:01:18 +03:00
Formsmith 1fcd471a0f Keep Vercel demo config out of local repo 2026-06-12 22:00:17 +03:00