cyclecad 1.0.9 → 1.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.
package/app/index.html CHANGED
@@ -1419,7 +1419,7 @@
1419
1419
  <span class="splash-logo-cycle">cycle</span><span class="splash-logo-cad">CAD</span>
1420
1420
  </div>
1421
1421
  <p class="splash-subtitle">Parametric 3D CAD Modeler for the Mechanical Designer</p>
1422
- <p style="display:inline-block; color:#0066cc; font-size:1rem; margin:12px 0 0 0; letter-spacing:2px; font-family:monospace; font-weight:700; background:rgba(0,102,204,0.08); border:1.5px solid rgba(0,102,204,0.25); border-radius:8px; padding:5px 20px;">v1.0.9</p>
1422
+ <p style="display:inline-block; color:#0066cc; font-size:1rem; margin:12px 0 0 0; letter-spacing:2px; font-family:monospace; font-weight:700; background:rgba(0,102,204,0.08); border:1.5px solid rgba(0,102,204,0.25); border-radius:8px; padding:5px 20px;">v1.1.0</p>
1423
1423
  </div>
1424
1424
  <div class="splash-options">
1425
1425
  <button class="splash-button splash-button-primary" id="btn-empty-project" style="grid-column: 1 / -1;">
@@ -5272,6 +5272,6 @@
5272
5272
  </div>
5273
5273
  </div>
5274
5274
 
5275
- <span id="version-badge" style="position:fixed;bottom:42px;left:50%;transform:translateX(-50%);z-index:999;font-size:0.9rem;color:rgba(255,255,255,0.9);letter-spacing:0.1em;white-space:nowrap;padding:6px 16px;user-select:all;pointer-events:auto;font-family:monospace;font-weight:700;background:rgba(0,0,0,0.7);border:1px solid rgba(88,166,255,0.4);border-radius:6px;text-shadow:0 1px 3px rgba(0,0,0,0.5);" title="cycleCAD version">cycleCAD v1.0.9</span>
5275
+ <span id="version-badge" style="position:fixed;bottom:42px;left:50%;transform:translateX(-50%);z-index:999;font-size:0.9rem;color:rgba(255,255,255,0.9);letter-spacing:0.1em;white-space:nowrap;padding:6px 16px;user-select:all;pointer-events:auto;font-family:monospace;font-weight:700;background:rgba(0,0,0,0.7);border:1px solid rgba(88,166,255,0.4);border-radius:6px;text-shadow:0 1px 3px rgba(0,0,0,0.5);" title="cycleCAD version">cycleCAD v1.1.0</span>
5276
5276
  </body>
5277
5277
  </html>
@@ -668,23 +668,29 @@ function parseNaturalLanguage(text) {
668
668
  const numbers = extractNumbers(text);
669
669
  let preview = '';
670
670
 
671
- // Detect primary shape
672
- const shapeType = detectShapeType(text);
673
- const shapeParams = parseShapeParams(text, shapeType, numbers);
671
+ // Detect operations first — if text is purely an operation (add holes, fillet, etc.), skip shape creation
672
+ const ops = parseOperations(text, numbers);
674
673
 
675
- if (shapeParams) {
676
- commands.push({
677
- method: `shape.${shapeType}`,
678
- params: shapeParams,
679
- });
680
- preview += `Create ${shapeType}`;
674
+ // Only create a shape if text is NOT purely an operation command
675
+ const isOperationOnly = ops.length > 0 && text.match(/^(add|make|put|drill|bore|cut|fillet|chamfer|round|mirror|pattern)\b/i);
676
+
677
+ if (!isOperationOnly) {
678
+ // Detect primary shape
679
+ const shapeType = detectShapeType(text);
680
+ const shapeParams = parseShapeParams(text, shapeType, numbers);
681
+
682
+ if (shapeParams) {
683
+ commands.push({
684
+ method: `shape.${shapeType}`,
685
+ params: shapeParams,
686
+ });
687
+ preview += `Create ${shapeType}`;
688
+ }
681
689
  }
682
690
 
683
- // Detect operations
684
- const ops = parseOperations(text, numbers);
685
691
  commands.push(...ops);
686
692
  if (ops.length > 0) {
687
- preview += ops.map((op) => ` → ${op.method.split('.')[1]}`).join('');
693
+ preview += (preview ? ' ' : '') + ops.map((op) => `${op.method.split('.')[1]}`).join(' + ');
688
694
  }
689
695
 
690
696
  // Detect material
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyclecad",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Browser-based parametric 3D CAD modeler with AI-powered tools, native Inventor file parsing, and smart assembly management. No install required.",
5
5
  "main": "index.html",
6
6
  "bin": {