app
Fusion - the Fusion 360 Bridge
Public Made by Adomby adom
Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.
← Commit history
Update 7 file(s)
7 files changed
+91−21
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.127+1.9.128
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.127",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.143/adom-bridge-fusion-v1.9.127.zip",- "sha256": "42a3212a44cab8a2e2abcdd3264d8fb96fbb8f9099975045ba23e6dd5af5bace",- "size": 462339,+ "version": "1.9.128",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.144/adom-bridge-fusion-v1.9.128.zip",+ "sha256": "cf3902dc227eaeaddb8d393b0d6a178f4b31f0cbd67506b9ac252ac549ddd539",+ "size": 463809, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.127",+ "version": "1.9.128", "description": "Drive Autodesk Fusion 360 from the cloud: launch Fusion, electronics board layout, design rules, exports (STEP/IGES/STL/3MF/USDZ/OBJ/DXF/DWG/Gerbers/BOM/CPL), fast APS server-indexed cloud search plus browse/recent/file-info/versions, cloud file download/upload and folder creation, and in-app parametric modeling (fusion_run_modeling_script). Never-charge: APS calls are capped to the free tier.", "homepage": "https://wiki.adom.inc/adom/fusion-bridge", "author": "Adom Inc.",
handlers/dialog_classify.py+10@@ -19,6 +19,16 @@ from handlers.fusion_ui import get_fusion_window_info # (category, resolution-hint) keyed by lowercase title substrings, checked in order. _RULES = [+ # Fusion refused to open a broken .lbr and left an empty design behind (John caught it+ # live 2026-08-21, a 77-byte truncated file). OK is the only button; the orphan+ # Untitled design is bridge-attributable scratch, closed without saving by the janitor.+ (("has errors and cannot be opened", "close the empty design file without saving"),+ "lbr_open_error",+ "Fusion could not parse the library file. Click OK, close the leftover empty Untitled "+ "design WITHOUT saving, and fix the FILE - as of 1.9.128 fusion_open_lbr refuses "+ "unparseable libraries up front (lbr_invalid) so this modal should never appear for a "+ "bridge-issued open; a raw caller-staged file can still trip it."),+ # ⚠️ DATA-LOSS dialog. Closing a doc while its 3D packages still upload to the Hub. # Title is often the bare "Fusion", so this also gets caught by the generic fallback # below; the rule here fires when the build surfaces descriptive text. The CORRECT
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.143",+ "version": "1.9.144", "type": "app", "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.", "dependencies": {
page.json+10−7@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.143",+ "version": "1.9.144", "type": "app", "description": "This package installs the bridge's SKILLS into your container so your AI knows how to drive it; Adom Bridge loads the bridge runtime itself from the release zip.", "dependencies": {@@ -11,6 +11,10 @@ "uninstall": "./uninstall.sh" }, "tags": [+ "ab",+ "bridge",+ "fusion",+ "desktop-app", "fusion360", "autodesk", "cad",@@ -70,7 +74,10 @@ "build a basic parts library", "add a 3d model to a component", "make a fusion 360 library with 3d",- "set up the fusion bridge"+ "set up the fusion bridge",+ "fusion dashboard",+ "fusion status page",+ "open the fusion launch page" ], "discovery_pitch": "Use the Adom Bridge Fusion 360 bridge when the user wants to DRIVE Autodesk Fusion 360 from the cloud: open/search their team's Fusion cloud designs, lay out a PCB or do electronics, export STEP/IGES/STL/Gerbers/BOM, or build a component library with real rendering 3D. It runs Fusion on the user's own machine via Adom Bridge. NOT for web/browser/login/form-filling (that's the native-browser extension) and NOT for KiCad (that's the kicad bridge).", "brief": "Drive Autodesk Fusion 360 from the cloud via Adom Bridge: component libraries, IPC package generation, board layout, exports (STEP/Gerbers/BOM/CPL), fast APS cloud search, and parametric modeling.",@@ -99,9 +106,5 @@ "label": "Part volume", "prompt": "How much material does each printed part in this assembly use?" }- ],- "author": {- "name": "John Lauer",- "email": "[email protected]"- }+ ] }
server.py+64−7@@ -3000,6 +3000,34 @@ def _orchestrate_open_lbr(args: dict) -> dict: import time file_path = args.get("filePath", "")+ # ⛔ PARSE BEFORE FUSION EVER SEES IT (John caught the dialog live, 2026-08-21): a+ # 77-byte garbage .lbr staged by a caller sailed straight into Fusion, which raised+ # its blocking "has errors and cannot be opened" Error modal ON EVERY RETRY and left+ # an empty Untitled design behind each time. The file's validity is knowable offline+ # in milliseconds - an unparseable library must NEVER reach Fusion's parser.+ try:+ _pf = file_path.replace("\\", "/")+ if _pf and os.path.exists(_pf):+ import xml.etree.ElementTree as _ETpre+ _rootpre = _ETpre.parse(_pf).getroot()+ if _rootpre.tag != "eagle":+ raise ValueError("root element is <%s>, not <eagle>" % _rootpre.tag)+ except Exception as _epre:+ try:+ _sz = os.path.getsize(_pf)+ _head = open(_pf, "rb").read(48)+ except Exception:+ _sz, _head = None, b""+ return {"success": False, "errorCode": "lbr_invalid",+ "error": "%s is not a parseable EAGLE library (%s) - refusing to hand it to "+ "Fusion, whose only response is a blocking Error modal plus an "+ "orphaned empty design." % (file_path, str(_epre)[:120]),+ "fileSize": _sz,+ "fileHead": repr(_head[:32]),+ "_hint": ("The file on THIS box is bad (size %s bytes). Re-stage it from the "+ "source and compare sizes/hashes - a transfer that truncates or "+ "re-encodes is the usual culprit. Nothing was opened and no dialog "+ "was raised." % _sz)} # PRE-CLOSE a stale dirty copy of this same library (deterministic-close rule): opening # over an unsaved same-name document is how duplicate docs piled up (15 at peak) and how # later closes rained Save-As prompts. If a dirty copy is open, resolve it NOW - it is@@ -7040,7 +7068,19 @@ def _resolve_artifact_name(name: str, suffix: str, lbr_path: str): """ have = _library_artifact_names(lbr_path).get(suffix if suffix in ("sym", "pac", "dev") else "", []) if not have:- return name, None # cannot read the library -> do not block the call+ # REFUSE, do not wave it through (reversed 2026-08-21, John caught the prompt+ # live): "cannot read the library -> do not block" meant a corrupt .lbr let the+ # EDIT reach Fusion, which popped "Create new footprint 'X'?" - the exact modal+ # this resolver exists to prevent. An unreadable or artifact-less library makes+ # the prompt CERTAIN, so certainty of a prompt is exactly when to block.+ return None, {+ "success": False, "errorCode": "library_unreadable",+ "error": "Cannot read any %s names from %s - the library is unparseable or "+ "empty, so EDIT was NOT issued (it would certainly raise Fusion's "+ "Create-new prompt)." % (suffix, lbr_path),+ "_hint": "Validate the .lbr first (fusion_open_lbr now refuses garbage with "+ "lbr_invalid + the file size/head). Re-stage the file from its source "+ "and compare hashes."} if name in have: return name, None ci = [h for h in have if h.lower() == str(name).lower()]@@ -10102,20 +10142,37 @@ def dispatch_command(command: str, args: dict, caller_identity: dict = None) -> res["savePromptCleared"] = _sw.get("why") except Exception: pass- # Same chokepoint, second standing modal (John caught it on screen,- # 2026-08-21): the Hub "packages are being uploaded... sure you want to- # close?" confirm. "No" is ALWAYS the work-preserving answer - it cancels- # the close, loses nothing, and the upload gates added today keep the- # close from being re-raised until app.hasActiveJobs drains.+ # Same chokepoint, the other standing modals (John caught each on screen,+ # 2026-08-21). All are answered with their work-preserving choice - a raw+ # electron_run EDIT from ANY caller can raise the Create prompt, and no+ # verb-level pre-check reaches those, so the answer lives HERE:+ # upload_in_progress -> No (cancels the close; the upload survives)+ # create_confirm -> No (never fabricate an empty artifact)+ # lbr open Error -> OK (dismiss; its orphan Untitled design gets+ # closed by the doc janitor) try: for _d in (classify_blocking_dialogs() or []):- if _d.get("category") == "upload_in_progress":+ _cat = _d.get("category")+ if _cat == "upload_in_progress": _unwrap(_ad_call("desktop_ui_click", {"hwnd": _d.get("hwnd"), "name": "No"}, timeout=12)) if isinstance(res, dict): res["uploadCloseDeclined"] = True print("[Fusion Bridge] answered the Hub upload-close confirm with " "No (work-preserving; close retried after jobs drain)")+ elif _cat == "create_confirm":+ _unwrap(_ad_call("desktop_ui_click",+ {"hwnd": _d.get("hwnd"), "name": "No"}, timeout=12))+ if isinstance(res, dict):+ res["createPromptDeclined"] = True+ print("[Fusion Bridge] declined a standing Create-new prompt at the "+ "chokepoint (raised by a raw EDIT; Yes would fabricate an "+ "empty artifact)")+ elif _cat in ("launch_error", "lbr_open_error"):+ _unwrap(_ad_call("desktop_ui_click",+ {"hwnd": _d.get("hwnd"), "name": "OK"}, timeout=12))+ print("[Fusion Bridge] dismissed a standing %s dialog at the "+ "chokepoint" % _cat) except Exception: pass except Exception: