cyclecad 3.0.0 → 3.1.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 (66) hide show
  1. package/BILLING-IMPLEMENTATION-SUMMARY.md +425 -0
  2. package/BILLING-INDEX.md +293 -0
  3. package/BILLING-INTEGRATION-GUIDE.md +414 -0
  4. package/COLLABORATION-INDEX.md +440 -0
  5. package/COLLABORATION-SYSTEM-SUMMARY.md +548 -0
  6. package/DOCKER-BUILD-MANIFEST.txt +483 -0
  7. package/DOCKER-FILES-REFERENCE.md +440 -0
  8. package/DOCKER-INFRASTRUCTURE.md +475 -0
  9. package/DOCKER-README.md +435 -0
  10. package/Dockerfile +33 -55
  11. package/PWA-FILES-CREATED.txt +350 -0
  12. package/QUICK-START-TESTING.md +126 -0
  13. package/STEP-IMPORT-QUICKSTART.md +347 -0
  14. package/STEP-IMPORT-SYSTEM-SUMMARY.md +502 -0
  15. package/app/css/mobile.css +1074 -0
  16. package/app/icons/generate-icons.js +203 -0
  17. package/app/js/billing-ui.js +990 -0
  18. package/app/js/brep-kernel.js +933 -981
  19. package/app/js/collab-client.js +750 -0
  20. package/app/js/mobile-nav.js +623 -0
  21. package/app/js/mobile-toolbar.js +476 -0
  22. package/app/js/modules/billing-module.js +724 -0
  23. package/app/js/modules/step-module-enhanced.js +938 -0
  24. package/app/js/offline-manager.js +705 -0
  25. package/app/js/responsive-init.js +360 -0
  26. package/app/js/touch-handler.js +429 -0
  27. package/app/manifest.json +211 -0
  28. package/app/offline.html +508 -0
  29. package/app/sw.js +571 -0
  30. package/app/tests/billing-tests.html +779 -0
  31. package/app/tests/brep-tests.html +980 -0
  32. package/app/tests/collab-tests.html +743 -0
  33. package/app/tests/mobile-tests.html +1299 -0
  34. package/app/tests/pwa-tests.html +1134 -0
  35. package/app/tests/step-tests.html +1042 -0
  36. package/app/tests/test-agent-v3.html +719 -0
  37. package/docker-compose.yml +225 -0
  38. package/docs/BILLING-HELP.json +260 -0
  39. package/docs/BILLING-README.md +639 -0
  40. package/docs/BILLING-TUTORIAL.md +736 -0
  41. package/docs/BREP-HELP.json +326 -0
  42. package/docs/BREP-TUTORIAL.md +802 -0
  43. package/docs/COLLABORATION-HELP.json +228 -0
  44. package/docs/COLLABORATION-TUTORIAL.md +818 -0
  45. package/docs/DOCKER-HELP.json +224 -0
  46. package/docs/DOCKER-TUTORIAL.md +974 -0
  47. package/docs/MOBILE-HELP.json +243 -0
  48. package/docs/MOBILE-RESPONSIVE-README.md +378 -0
  49. package/docs/MOBILE-TUTORIAL.md +747 -0
  50. package/docs/PWA-HELP.json +228 -0
  51. package/docs/PWA-README.md +662 -0
  52. package/docs/PWA-TUTORIAL.md +757 -0
  53. package/docs/STEP-HELP.json +481 -0
  54. package/docs/STEP-IMPORT-TUTORIAL.md +824 -0
  55. package/docs/TESTING-GUIDE.md +528 -0
  56. package/docs/TESTING-HELP.json +182 -0
  57. package/fusion-vs-cyclecad.html +1771 -0
  58. package/nginx.conf +237 -0
  59. package/package.json +1 -1
  60. package/server/Dockerfile.converter +51 -0
  61. package/server/Dockerfile.signaling +28 -0
  62. package/server/billing-server.js +487 -0
  63. package/server/converter-enhanced.py +528 -0
  64. package/server/requirements-converter.txt +29 -0
  65. package/server/signaling-server.js +801 -0
  66. package/tests/docker-tests.sh +389 -0
@@ -0,0 +1,224 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "docker_help_entries": [
4
+ {
5
+ "id": "docker-start",
6
+ "title": "Start All Services",
7
+ "category": "basics",
8
+ "description": "Start cycleCAD, converter, signaling, and optional ExplodeView",
9
+ "commands": [
10
+ "docker-compose up -d",
11
+ "docker-compose ps"
12
+ ],
13
+ "example": "Start services in background and check status",
14
+ "output": "3 services running and healthy"
15
+ },
16
+ {
17
+ "id": "docker-stop",
18
+ "title": "Stop All Services",
19
+ "category": "basics",
20
+ "description": "Stop running services while preserving data",
21
+ "commands": [
22
+ "docker-compose stop",
23
+ "docker-compose down"
24
+ ],
25
+ "example": "Stop services (containers) vs down (containers + network)",
26
+ "output": "Services stopped, volumes preserved"
27
+ },
28
+ {
29
+ "id": "docker-logs",
30
+ "title": "View Service Logs",
31
+ "category": "monitoring",
32
+ "description": "Stream real-time logs from services",
33
+ "commands": [
34
+ "docker-compose logs -f",
35
+ "docker-compose logs -f converter",
36
+ "docker-compose logs --tail 50"
37
+ ],
38
+ "example": "View all logs in real-time, or filter by service",
39
+ "output": "Timestamped log entries from selected service(s)"
40
+ },
41
+ {
42
+ "id": "docker-status",
43
+ "title": "Check Service Status",
44
+ "category": "monitoring",
45
+ "description": "View running status and health checks",
46
+ "commands": [
47
+ "docker-compose ps",
48
+ "docker stats"
49
+ ],
50
+ "example": "Show health status and resource usage",
51
+ "output": "Table with Up/Down status and (healthy)/(unhealthy)"
52
+ },
53
+ {
54
+ "id": "docker-health",
55
+ "title": "Test Health Endpoints",
56
+ "category": "monitoring",
57
+ "description": "Verify services are responding correctly",
58
+ "commands": [
59
+ "curl http://localhost:8080/health",
60
+ "curl http://localhost:8787/health",
61
+ "curl http://localhost:8788/health"
62
+ ],
63
+ "example": "Check each service's health endpoint",
64
+ "output": "JSON response: {\"status\":\"ok\"}"
65
+ },
66
+ {
67
+ "id": "docker-exec",
68
+ "title": "Execute Commands in Service",
69
+ "category": "development",
70
+ "description": "Run commands inside running container",
71
+ "commands": [
72
+ "docker-compose exec cyclecad sh",
73
+ "docker-compose exec converter python -V",
74
+ "docker-compose exec signaling node -V"
75
+ ],
76
+ "example": "Open shell or run single command in service",
77
+ "output": "Shell prompt or command output"
78
+ },
79
+ {
80
+ "id": "docker-build",
81
+ "title": "Build or Rebuild Images",
82
+ "category": "development",
83
+ "description": "Build Docker images from Dockerfile",
84
+ "commands": [
85
+ "docker-compose build",
86
+ "docker-compose build --no-cache converter",
87
+ "docker-compose build converter"
88
+ ],
89
+ "example": "Full rebuild (all services) or specific service",
90
+ "output": "Built images, ready to run"
91
+ },
92
+ {
93
+ "id": "docker-step-convert",
94
+ "title": "Test STEP Conversion",
95
+ "category": "converter",
96
+ "description": "Upload STEP file and get GLB output",
97
+ "commands": [
98
+ "curl -X POST http://localhost:8787/convert -F 'file=@model.stp'"
99
+ ],
100
+ "example": "Convert a STEP file to GLB format",
101
+ "output": "Binary GLB file (3D model in glTF format)"
102
+ },
103
+ {
104
+ "id": "docker-converter-api",
105
+ "title": "Converter API Documentation",
106
+ "category": "converter",
107
+ "description": "View OpenAPI (Swagger) documentation for converter",
108
+ "commands": [
109
+ "open http://localhost:8787/docs"
110
+ ],
111
+ "example": "View all converter endpoints and test them",
112
+ "output": "Interactive Swagger UI in browser"
113
+ },
114
+ {
115
+ "id": "docker-restart",
116
+ "title": "Restart Services",
117
+ "category": "management",
118
+ "description": "Restart running services (useful after config changes)",
119
+ "commands": [
120
+ "docker-compose restart",
121
+ "docker-compose restart converter"
122
+ ],
123
+ "example": "Restart all services or specific one",
124
+ "output": "Services restarted, same containers"
125
+ },
126
+ {
127
+ "id": "docker-env",
128
+ "title": "Environment Variables",
129
+ "category": "configuration",
130
+ "description": "Configure services via .env file",
131
+ "commands": [
132
+ "cat > .env << EOF",
133
+ "APP_ENV=production",
134
+ "WORKERS=4",
135
+ "LOG_LEVEL=info",
136
+ "EOF"
137
+ ],
138
+ "example": "Create .env file with custom settings",
139
+ "output": ".env file loaded by docker-compose"
140
+ },
141
+ {
142
+ "id": "docker-volume",
143
+ "title": "Manage Volumes",
144
+ "category": "data",
145
+ "description": "View and manage Docker volumes (persistent data)",
146
+ "commands": [
147
+ "docker volume ls",
148
+ "docker volume inspect cyclecad_db-data",
149
+ "docker volume rm cyclecad_db-data"
150
+ ],
151
+ "example": "List all volumes, inspect one, or delete",
152
+ "output": "Volume metadata and mount point"
153
+ },
154
+ {
155
+ "id": "docker-cleanup",
156
+ "title": "Clean Up Unused Resources",
157
+ "category": "maintenance",
158
+ "description": "Remove dangling images, containers, and volumes",
159
+ "commands": [
160
+ "docker system prune",
161
+ "docker system prune -a --volumes"
162
+ ],
163
+ "example": "Free up disk space by removing unused resources",
164
+ "output": "Summary of deleted resources"
165
+ },
166
+ {
167
+ "id": "docker-logs-persistent",
168
+ "title": "Persistent Logging",
169
+ "category": "monitoring",
170
+ "description": "Save logs to file and view later",
171
+ "commands": [
172
+ "docker-compose logs > all-logs.txt",
173
+ "docker-compose logs converter > converter-logs.txt"
174
+ ],
175
+ "example": "Redirect logs to file for debugging",
176
+ "output": "Log file created with full output"
177
+ },
178
+ {
179
+ "id": "docker-profile",
180
+ "title": "Service Profiles (Optional Services)",
181
+ "category": "configuration",
182
+ "description": "Enable optional services like ExplodeView",
183
+ "commands": [
184
+ "docker-compose --profile with-explodeview up -d"
185
+ ],
186
+ "example": "Start cycleCAD + ExplodeView",
187
+ "output": "4 services running (including explodeview)"
188
+ },
189
+ {
190
+ "id": "docker-network",
191
+ "title": "Docker Network Information",
192
+ "category": "networking",
193
+ "description": "View container network connectivity",
194
+ "commands": [
195
+ "docker network ls",
196
+ "docker network inspect cyclecad_cyclecad-network"
197
+ ],
198
+ "example": "Check network isolation between services",
199
+ "output": "Network configuration and connected containers"
200
+ }
201
+ ],
202
+ "tips": [
203
+ {
204
+ "tip": "Use 'docker-compose up -d' in production, 'docker-compose up' in development to see logs",
205
+ "category": "best-practices"
206
+ },
207
+ {
208
+ "tip": "Always run health checks after starting: 'docker-compose ps' should show (healthy)",
209
+ "category": "monitoring"
210
+ },
211
+ {
212
+ "tip": "Set LOG_LEVEL=debug in .env for troubleshooting, use LOG_LEVEL=warn in production",
213
+ "category": "logging"
214
+ },
215
+ {
216
+ "tip": "Use 'docker-compose logs --since 30m' to view logs from last 30 minutes",
217
+ "category": "debugging"
218
+ },
219
+ {
220
+ "tip": "Scale converter with multiple instances for heavy STEP processing: add converter-2, converter-3 in docker-compose.yml",
221
+ "category": "performance"
222
+ }
223
+ ]
224
+ }