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 102 file(s)
9 files changed
+93−23
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.298+1.9.299
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.298",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.298/adom-bridge-fusion-v1.9.298.zip",- "sha256": "6ca5593fdf4f2cbc18b8a710e8456f963508affb375924162bab929d1cf1414d",- "size": 584590,+ "version": "1.9.299",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.299/adom-bridge-fusion-v1.9.299.zip",+ "sha256": "7cbd06b7983582da6cbd18259ebee0a114edd166cfad69cfeea595ec8814ad5e",+ "size": 585605, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.298",+ "version": "1.9.299", "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.",
dashboard/Cargo.lock+1−1@@ -4,7 +4,7 @@ version = 4 [[package]] name = "fusion-dashboard"-version = "1.9.298"+version = "1.9.299" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.298"+version = "1.9.299" edition = "2021" [dependencies]
install.sh+1−1@@ -21,7 +21,7 @@ echo "Installed fusion-bridge skills: $(ls "$PKG_DIR/skills" 2>/dev/null | tr '\ # binary (the three-artifact pattern: bridge zip -> ab, THIS pkg -> container skills + # this download, page media -> wiki). Per the wiki's PKG_VS_RELEASE policy, binaries are # platform-tagged RELEASE assets, never tarball content - the installer fetches them.-DASH_VERSION="1.9.298"+DASH_VERSION="1.9.299" DASH_URL="https://wiki.adom.inc/download/adom/fusion-bridge/${DASH_VERSION}/fusion-dashboard" DEST="" if [ -w /usr/local/bin ]; then DEST=/usr/local/bin
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.298",+ "version": "1.9.299", "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+11−8@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.9.298",+ "version": "1.9.299", "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",@@ -75,7 +79,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.",@@ -104,9 +111,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+72−5@@ -450,6 +450,27 @@ def _watch_restart_choice(notification_id: str, timeout_s: float = 1800.0): _th.Thread(target=_run, daemon=True).start() +_AUTO_ADDIN_RESTART = {"at": 0.0}+++def _begin_auto_addin_restart() -> bool:+ """Restart Fusion for the add-in in the background, once per 4 minutes, saving what can+ be saved. Only called when no unsaved document belongs to the user."""+ import time as _t, threading as _th+ if _t.time() - _AUTO_ADDIN_RESTART["at"] < 240:+ return False+ _AUTO_ADDIN_RESTART["at"] = _t.time()++ def _go():+ try:+ r = _handle_restart_for_addin(detect_fusion(), {"save": True, "auto": True})+ print("[Fusion Bridge] auto add-in restart: %s" % ({k: r.get(k) for k in ("success", "errorCode")},))+ except Exception as e:+ print("[Fusion Bridge] auto add-in restart failed: %s" % str(e)[:200])+ _th.Thread(target=_go, daemon=True).start()+ return True++ def _addin_restart_info(fire_toast: bool = True) -> dict: """Everything a CALLER needs to tell a HUMAN that Fusion must restart, plus a toast. @@ -497,7 +518,29 @@ def _addin_restart_info(fire_toast: bool = True) -> dict: except Exception: pass - if fire_toast:+ # OWNERSHIP DECIDES (John, 2026-08-30, two pointless toasts while he was at lunch:+ # "i've edited NONE of the fusion docs so clearly none of that is mine"). The bridge+ # registers every document it opens; a restart may only ASK when an unsaved document+ # the user made is at risk. With none, the caller auto-restarts and no toast exists.+ try:+ _unames = None+ if info.get("documentsKnown"):+ _unames = [d.get("name") for d in docs if not d.get("isSaved")]+ elif _LAST_KNOWN_DOCS.get("docs") is not None:+ _unames = [n for (n, _sv) in _LAST_KNOWN_DOCS["docs"] if not _sv]+ info["documentsSource"] = "last known, %.0fs old" % (_t.time() - _LAST_KNOWN_DOCS["at"])+ if _unames is not None:+ info["userUnsaved"] = _user_unsaved_docs(_unames)+ info["autoRestart"] = not info["userUnsaved"]+ else:+ # No document list at all, from the add-in or memory. If the bridge launched+ # this Fusion itself, everything in it is bridge-era: restart. Only a Fusion+ # the user had open before the bridge ever spoke to it stays an ask.+ info["autoRestart"] = not _SESSION_DOCS_AT_START+ except Exception:+ info["autoRestart"] = False++ if fire_toast and not info.get("autoRestart"): # ONE toast per staged install, not per failed verb: Adonis would have had a dozen # verbs fail, and a dozen identical toasts is its own bad experience. try:@@ -3139,9 +3182,21 @@ _ASSEMBLY_BOM_UNIT_DEFAULTS = ["with fasteners", "with fastener", "with bearings _SESSION_SNAPSHOT_DONE = [False] +_LAST_KNOWN_DOCS = {"docs": None, "at": 0.0} # [(name, isSaved)] from the last good get_app_state++ def _snapshot_session_docs(st: dict): """Record what was open the FIRST time this bridge process heard from the add-in: those documents are the user's; everything the bridge opens later is registered as its own."""+ try:+ docs = (st.get("data") or {}).get("documents")+ if isinstance(docs, list):+ import time as _tl+ _LAST_KNOWN_DOCS["docs"] = [(str((d or {}).get("name") or ""), bool((d or {}).get("isSaved")))+ for d in docs]+ _LAST_KNOWN_DOCS["at"] = _tl.time()+ except Exception:+ pass if _SESSION_SNAPSHOT_DONE[0]: return try:@@ -3150,7 +3205,7 @@ def _snapshot_session_docs(st: dict): return for d in docs: n = str((d or {}).get("name") or "").lower()- if n and not _is_bridge_doc_text(n):+ if n and not _is_bridge_doc_text(n) and not n.startswith("untitled"): _SESSION_DOCS_AT_START.add(n) _SESSION_SNAPSHOT_DONE[0] = True except Exception:@@ -6444,9 +6499,9 @@ def _user_unsaved_docs(unsaved_names) -> list: continue if _is_bridge_doc_text(bare): continue- if bare.startswith("untitled") and bare not in _SESSION_DOCS_AT_START:- continue- if bare.endswith("_3d") and bare not in _SESSION_DOCS_AT_START:+ # John, 2026-08-30: "all your stale untitleds ... don't assume they're mine". Fusion+ # and the bridge's own scripts mint Untitled and *_3d documents; John names his work.+ if bare.startswith("untitled") or bare.endswith("_3d"): continue out.append(raw) return out@@ -14436,6 +14491,18 @@ def _dispatch_command_inner(command: str, args: dict, caller_identity: dict = No # The payload now carries what a web-control caller needs to ASK him, and a # toast fires so he is told even if the caller drops it on the floor. _ri = _addin_restart_info()+ if _ri.get("autoRestart"):+ _started = _begin_auto_addin_restart()+ return {+ "success": False,+ "errorCode": "addin_restarting",+ "error": ("Fusion is running without the Adom add-in and no unsaved "+ "document belongs to the user, so the bridge is restarting "+ "Fusion itself (documents are saved first). No toast, no ask."),+ "restartStarted": _started,+ "userUnsaved": _ri.get("userUnsaved") or [],+ "_hint": "Poll fusion_readiness; ready flips true in ~60-90s, then retry this verb.",+ } return { "success": False, "error": ("Fusion 360 is running but the AdomBridge add-in is not responding "