cyclecad 0.1.5 → 0.1.8
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/CLAUDE.md +165 -34
- package/app/agent-demo.html +1049 -0
- package/app/index.html +15 -0
- package/app/js/agent-api.js +1048 -0
- package/app/mobile.html +1276 -0
- package/brand-identity.html +918 -0
- package/competitive-analysis.html +629 -0
- package/cycleCAD-Investor-Deck.pptx +0 -0
- package/index.html +746 -776
- package/logo-concepts.html +167 -0
- package/package.json +1 -1
- package/~$cycleCAD-Investor-Deck.pptx +0 -0
package/app/index.html
CHANGED
|
@@ -1609,6 +1609,7 @@
|
|
|
1609
1609
|
import { createSweep, createLoft, createBend, createFlange, createTab, createSlot, unfoldSheetMetal, createSpring, createThread } from './js/advanced-ops.js';
|
|
1610
1610
|
import Assembly from './js/assembly.js';
|
|
1611
1611
|
import { exportSketchToDXF, exportProjectionToDXF, exportMultiViewDXF, export3DDXF, downloadDXF } from './js/dxf-export.js';
|
|
1612
|
+
import { initAgentAPI } from './js/agent-api.js';
|
|
1612
1613
|
|
|
1613
1614
|
// ========== Application State ==========
|
|
1614
1615
|
const APP = {
|
|
@@ -1774,6 +1775,20 @@
|
|
|
1774
1775
|
window.location.replace(url.toString());
|
|
1775
1776
|
});
|
|
1776
1777
|
|
|
1778
|
+
// Initialize Agent API — the primary interface
|
|
1779
|
+
const agentImports = await import('./js/agent-api.js');
|
|
1780
|
+
const agentSession = initAgentAPI({
|
|
1781
|
+
viewport: { getCamera, getControls, getScene, getRenderer: () => document.querySelector('#viewport-container canvas')?.getContext ? null : null, setView, fitToObject, addToScene, removeFromScene, toggleGrid: vpToggleGrid, toggleWireframe: (e) => {}, toggleAxisLines: () => {} },
|
|
1782
|
+
sketch: { startSketch, endSketch, setTool, getEntities, clearSketch },
|
|
1783
|
+
operations: { extrudeProfile, createPrimitive, rebuildFeature, createMaterial, fillet: () => {}, chamfer: () => {}, booleanUnion: () => {}, booleanCut: () => {}, booleanIntersect: () => {}, createShell: () => {}, createPattern: () => {}, getMaterialPresets: () => ({ steel: {}, aluminum: {}, plastic: {}, brass: {}, titanium: {}, nylon: {} }) },
|
|
1784
|
+
advancedOps: { createSweep, createLoft, createBend, createFlange, createTab, createSlot, unfoldSheetMetal, createSpring, createThread },
|
|
1785
|
+
exportModule: { exportSTL, exportOBJ, exportJSON, exportSTLBinary: exportSTL, exportGLTF: exportOBJ },
|
|
1786
|
+
appState: APP
|
|
1787
|
+
});
|
|
1788
|
+
console.log(`[Agent API] Ready. Session: ${agentSession.sessionId}`);
|
|
1789
|
+
console.log('[Agent API] Usage: window.cycleCAD.execute({ method: "meta.ping" })');
|
|
1790
|
+
console.log('[Agent API] Schema: window.cycleCAD.getSchema()');
|
|
1791
|
+
|
|
1777
1792
|
console.log('cycleCAD initialized successfully');
|
|
1778
1793
|
updateStatus('Ready');
|
|
1779
1794
|
|