ganjihong ad88d92ab9 refactor(cdsl_engine): split translator.py into the translator package
Phase 5 of the decoupling refactor (behavior-preserving move):
- translator/ir.py: SolidWorks plugin JSON to backend-IR conversion (70 syms)
- translator/codegen.py: backend IR to build123d source generation (64 syms)
- translator/runtime_lib.py: frozen generated-script runtime library,
  spliced into generate_build123d_code as *RUNTIME_LIB_LINES
- translator/common.py: helpers shared by both sides
- translator/__init__.py: full historical symbol surface re-exported

Generated-code equivalence verified byte-for-byte against the pre-split
output for a representative IR sample; py_compile clean.
2026-09-09 13:56:08 +08:00
2026-08-24 14:52:08 +08:00
2026-09-02 13:51:35 +08:00
2026-09-04 11:17:36 +08:00
2026-08-19 19:34:30 +08:00
2026-08-21 14:12:27 +08:00
2026-08-21 14:12:27 +08:00
2026-08-21 14:12:27 +08:00

CAD CDSL Workspace

This repository is organized as a CAD generation workspace with four runtime programs and one AI skill:

  • frontend/: Agent UI and 3D model preview.
  • backend/: API, generation orchestration, engine, and official CDSL library.
  • solidworks_to_json/: SolidWorks export plugin.
  • json_to_cdsl/: SolidWorks JSON to parameterized CDSL converter.
  • backend/agent/skills/cad-engine/: Instructions for the backend AI agent to use the CAD engine.
  • cdsl 5/: Existing experimental assets kept unchanged for reference.

Run both application services from the repository root with:

./run.sh

On Windows, run run.bat instead.

Python 3 and Node.js (including npm) must be installed first. Both startup scripts create backend/.venv and install the backend and frontend dependencies automatically when they are missing.

S
Description
No description provided
Readme 221 MiB
Languages
Python 67.2%
JavaScript 30.1%
TypeScript 2%
CSS 0.5%
Shell 0.1%