anycad 0.0.0-stage → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -2
  3. package/install.ps1 +41 -0
  4. package/package.json +16 -4
  5. package/runtime/assembly_plan.py +166 -0
  6. package/runtime/build_model.py +78 -0
  7. package/runtime/cad_help.py +147 -0
  8. package/runtime/cad_primitives.py +110 -0
  9. package/runtime/native_plan.py +107 -0
  10. package/runtime/plan.py +148 -0
  11. package/showcase/anycad-preview.png +0 -0
  12. package/showcase/dovetail-0mm.step +3514 -0
  13. package/showcase/dovetail-plus10mm.step +3514 -0
  14. package/showcase/dovetail-preview.png +0 -0
  15. package/showcase/dovetail-prompt.md +3 -0
  16. package/showcase/rounded-bolt-block.step +987 -0
  17. package/src/cad-construct.ts +231 -0
  18. package/src/cad-tools.ts +84 -0
  19. package/src/extension.ts +228 -0
  20. package/src/runtime.ts +5 -0
  21. package/vendor/text-to-cad/package.json +7 -0
  22. package/vendor/text-to-cad/skills/cad/LICENSE +21 -0
  23. package/vendor/text-to-cad/skills/cad/SKILL.md +241 -0
  24. package/vendor/text-to-cad/skills/cad/agents/openai.yaml +4 -0
  25. package/vendor/text-to-cad/skills/cad/references/2d-profiles-and-dxf.md +197 -0
  26. package/vendor/text-to-cad/skills/cad/references/animation.md +115 -0
  27. package/vendor/text-to-cad/skills/cad/references/build123d-modeling.md +206 -0
  28. package/vendor/text-to-cad/skills/cad/references/environments.md +44 -0
  29. package/vendor/text-to-cad/skills/cad/references/exports.md +249 -0
  30. package/vendor/text-to-cad/skills/cad/references/inspection-and-validation.md +383 -0
  31. package/vendor/text-to-cad/skills/cad/references/kinematics.md +478 -0
  32. package/vendor/text-to-cad/skills/cad/references/manufacturing-cnc.md +127 -0
  33. package/vendor/text-to-cad/skills/cad/references/manufacturing-injection-molding.md +133 -0
  34. package/vendor/text-to-cad/skills/cad/references/manufacturing-printing.md +129 -0
  35. package/vendor/text-to-cad/skills/cad/references/manufacturing-review.md +144 -0
  36. package/vendor/text-to-cad/skills/cad/references/manufacturing-sheet-metal.md +167 -0
  37. package/vendor/text-to-cad/skills/cad/references/model-contract.md +281 -0
  38. package/vendor/text-to-cad/skills/cad/references/positioning.md +94 -0
  39. package/vendor/text-to-cad/skills/cad/references/project-layout.md +79 -0
  40. package/vendor/text-to-cad/skills/cad/references/snapshot-review.md +203 -0
  41. package/workflow.md +13 -0
Binary file
@@ -0,0 +1,3 @@
1
+ Make a two-solid guide and slider assembly, with sharp edges. The centered guide base is 100 × 52 mm from Z=0 to 10. Fuse a centered 80 × 30 mm rail running along X from Z=8 to 20. Cut a through dovetail groove in the rail along the full X length. Its centered YZ cross section is 18 mm wide at its flat floor Z=12 and 12 mm wide at the open top Z=20, with straight walls. The guide base has four Ø6 through holes centered at every combination of X=±44 and Y=±18, with Ø10 counterbores 3 mm deep from the base's Z=10 top. The separate slider is 50 mm long along X and starts centered. Its tongue is extruded along that length. The centered tongue cross section is 16.8 mm wide at Z=12.5 and 10.8 mm wide at Z=20.5, with straight walls, then stays 10.8 mm wide up to Z=21. Fuse it to its centered 50 × 24 mm top plate from Z=20.5 to 26.5. Add two vertical Ø5.5 holes through the slider at slider-local X=±15, Y=0, with Ø9 counterbores 2 mm deep from its top. Add one transverse Ø4 through hole along Y in the tongue at slider-local X=0, Z=16. The slider must clear the guide at both its starting position and at +10 mm X travel. Provide a top-level travel_offset = model.param("travel_offset", 0.0, ...) that translates the complete slider along X only and can be changed to 10 mm. Deliver one assembly STEP containing both named solids, guide and slider.
2
+
3
+ Work in this run's current directory. Use the installed text-to-CAD workflow and build123d. Deliver an editable source at src/model.py and export its built model to exports/model.step. Build and verify the actual CAD output. In your final reply, give a short design summary, what you measured or tested, which requirements you verified, and any you could not verify. Keep it brief.