Skip to content

feat(export): manufacturing, image rendering, 3D mechanical CAD and project archive exports (Phase 5.4) - #49

Merged
vafreitas merged 1 commit into
developfrom
feature/phase-5-exports
Nov 1, 2026
Merged

vafreitas merged 1 commit into
developfrom
feature/phase-5-exports

Conversation

@vafreitas

Copy link
Copy Markdown
Member

Phase 5.4 • Exportações de Fabricação, Imagens, 3D e Arquivo de Projeto (P2)

Summary of Changes

  • Export Validation & Enhancement Module (exportEnhancements.ts):
    • validateExportDestination: validates file names and prevents path traversal (..) when resolving user-specified destination directories.
    • validateExportContent: verifies file size, format integrity, and specification headers across formats (SVG XML <svg>, PNG/JPEG headers, STEP CAD ISO-10303-21 standard, Wavefront OBJ tokens, STL solid/binary mesh, AutoCAD DXF sections, and EasyEDA .epro/.zip/JSON project bundles).
    • saveApiFile: enhanced with automatic format detection and content validation, standardizing validation reports across all export tools.
  • 4 New MCP Export Tools (exportTools.ts):
    • easyeda_export_image: high-resolution vector/raster image exports (PNG, SVG, JPG) with DPI control (up to 1200 DPI), transparent canvas background, visual themes, and PCB layer filtering.
    • easyeda_export_3d_model: 3D mechanical CAD geometry exports (STEP, OBJ, STL, WRL) with options for component 3D bodies, copper layers, serigraphy, and mesh quality.
    • easyeda_export_project_archive: full project packaging (.epro, .zip, .json) with manifest inspection of documents, sheets, PCBs, and parts count.
    • easyeda_export_dxf: 2D CAD DXF drawings of PCB outlines, copper traces, drilling holes, and schematics for mechanical enclosure fit, CNC routing, and laser cutting.
  • RPC Handlers & Method Capabilities:
    • Registered handlers exportImage, export3dModel, exportProjectArchive, and exportDxf.
    • Added capability detection in identity.ts for pcb_Document.exportSvg, pcb_Document.exportPng, sch_Document.exportSvg, sch_Document.exportPng, pcb_ManufactureData.getDxfFile, and dmt_Project.exportProject.
  • Catalog & Test Coverage:
    • Total tool catalog expanded from 70 to 74 tools.
    • Reference documentation updated in docs/tools.md.
    • Comprehensive test suite: 45 files / 450 tests passed (100%).
    • Smoke DRC test validated across all 74 tools via stdio + WebSocket.

@vafreitas
vafreitas merged commit 60b1ba0 into develop Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant