cyclecad 2.0.1 → 3.0.0

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 (48) hide show
  1. package/DELIVERABLES.txt +296 -445
  2. package/ENHANCEMENT_COMPLETION_REPORT.md +383 -0
  3. package/ENHANCEMENT_SUMMARY.txt +308 -0
  4. package/FEATURE_INVENTORY.md +235 -0
  5. package/FUSION360_FEATURES_SUMMARY.md +452 -0
  6. package/FUSION360_PARITY_ENHANCEMENTS.md +461 -0
  7. package/FUSION360_PARITY_SUMMARY.md +520 -0
  8. package/FUSION360_QUICK_REFERENCE.md +351 -0
  9. package/IMPLEMENTATION_GUIDE.md +502 -0
  10. package/INTEGRATION-GUIDE.md +377 -0
  11. package/MODULES_PHASES_6_7.md +780 -0
  12. package/MODULE_API_REFERENCE.md +712 -0
  13. package/MODULE_INVENTORY.txt +264 -0
  14. package/app/index.html +1345 -4930
  15. package/app/js/app.js +1312 -514
  16. package/app/js/brep-kernel.js +1353 -455
  17. package/app/js/help-module.js +1437 -0
  18. package/app/js/kernel.js +364 -40
  19. package/app/js/modules/animation-module.js +1461 -0
  20. package/app/js/modules/assembly-module.js +47 -3
  21. package/app/js/modules/cam-module.js +1572 -0
  22. package/app/js/modules/collaboration-module.js +1615 -0
  23. package/app/js/modules/constraint-module.js +1266 -0
  24. package/app/js/modules/data-module.js +1054 -0
  25. package/app/js/modules/drawing-module.js +54 -8
  26. package/app/js/modules/formats-module.js +873 -0
  27. package/app/js/modules/inspection-module.js +1330 -0
  28. package/app/js/modules/mesh-module-enhanced.js +880 -0
  29. package/app/js/modules/mesh-module.js +968 -0
  30. package/app/js/modules/operations-module.js +40 -7
  31. package/app/js/modules/plugin-module.js +1554 -0
  32. package/app/js/modules/rendering-module.js +1766 -0
  33. package/app/js/modules/scripting-module.js +1073 -0
  34. package/app/js/modules/simulation-module.js +60 -3
  35. package/app/js/modules/sketch-module.js +2029 -91
  36. package/app/js/modules/step-module.js +47 -6
  37. package/app/js/modules/surface-module.js +1040 -0
  38. package/app/js/modules/version-module.js +1830 -0
  39. package/app/js/modules/viewport-module.js +95 -8
  40. package/app/test-agent-v2.html +881 -1316
  41. package/cycleCAD-Architecture-v2.pptx +0 -0
  42. package/docs/ARCHITECTURE.html +838 -1408
  43. package/docs/DEVELOPER-GUIDE.md +1504 -0
  44. package/docs/TUTORIAL.md +740 -0
  45. package/package.json +1 -1
  46. package/~$cycleCAD-Architecture-v2.pptx +0 -0
  47. package/.github/scripts/cad-diff.js +0 -590
  48. package/.github/workflows/cad-diff.yml +0 -117
@@ -1,117 +0,0 @@
1
- name: CAD Visual Diff
2
-
3
- on:
4
- pull_request:
5
- paths:
6
- - '**.step'
7
- - '**.stp'
8
- - '**.stl'
9
- - '**.cyclecad'
10
- - '**.iam'
11
- - '**.ipt'
12
- - '**.json'
13
-
14
- permissions:
15
- pull-requests: write
16
- contents: read
17
-
18
- jobs:
19
- cad-diff:
20
- runs-on: ubuntu-latest
21
- timeout-minutes: 30
22
-
23
- steps:
24
- - name: Checkout code
25
- uses: actions/checkout@v4
26
- with:
27
- fetch-depth: 0
28
-
29
- - name: Setup Node.js
30
- uses: actions/setup-node@v4
31
- with:
32
- node-version: '20'
33
- cache: 'npm'
34
-
35
- - name: Install system dependencies
36
- run: |
37
- apt-get update
38
- apt-get install -y chromium-browser
39
-
40
- - name: Install npm dependencies
41
- run: |
42
- npm install --save-dev \
43
- three \
44
- puppeteer \
45
- occt-import-js \
46
- canvas \
47
- @actions/github \
48
- @actions/core
49
-
50
- - name: Create scripts directory
51
- run: mkdir -p .github/scripts
52
-
53
- - name: Copy CAD diff script
54
- run: |
55
- if [ ! -f .github/scripts/cad-diff.js ]; then
56
- echo "Note: cad-diff.js will be generated"
57
- fi
58
-
59
- - name: Generate CAD diffs
60
- id: generate-diffs
61
- run: node .github/scripts/cad-diff.js
62
- env:
63
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64
- GITHUB_EVENT_PATH: ${{ github.event_path }}
65
-
66
- - name: Post PR comment
67
- if: steps.generate-diffs.outputs.comment_body
68
- uses: actions/github-script@v7
69
- with:
70
- github-token: ${{ secrets.GITHUB_TOKEN }}
71
- script: |
72
- const fs = require('fs');
73
- const commentBody = process.env.COMMENT_BODY;
74
-
75
- if (!commentBody || commentBody.trim() === '') {
76
- console.log('No CAD changes detected');
77
- return;
78
- }
79
-
80
- const { data: comments } = await github.rest.issues.listComments({
81
- owner: context.repo.owner,
82
- repo: context.repo.repo,
83
- issue_number: context.issue.number,
84
- });
85
-
86
- const botComment = comments.find(comment =>
87
- comment.user.type === 'Bot' &&
88
- comment.body.includes('🔧 CAD Visual Diff')
89
- );
90
-
91
- if (botComment) {
92
- await github.rest.issues.updateComment({
93
- owner: context.repo.owner,
94
- repo: context.repo.repo,
95
- comment_id: botComment.id,
96
- body: commentBody,
97
- });
98
- console.log('Updated existing comment');
99
- } else {
100
- await github.rest.issues.createComment({
101
- owner: context.repo.owner,
102
- repo: context.repo.repo,
103
- issue_number: context.issue.number,
104
- body: commentBody,
105
- });
106
- console.log('Created new comment');
107
- }
108
- env:
109
- COMMENT_BODY: ${{ steps.generate-diffs.outputs.comment_body }}
110
-
111
- - name: Upload diff artifacts
112
- if: always()
113
- uses: actions/upload-artifact@v3
114
- with:
115
- name: cad-diffs
116
- path: .github/diffs/
117
- retention-days: 7