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)
10 files changed
+97−21
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.273+1.9.274
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.273",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.273/adom-bridge-fusion-v1.9.273.zip",- "sha256": "c8f3f88f83cf41257a5a1cbd750d317cff8fe55b0077f90753d70d24e74ad44b",- "size": 566331,+ "version": "1.9.274",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.274/adom-bridge-fusion-v1.9.274.zip",+ "sha256": "a88915ea37ebff3bfb470238bcfa10ec16d2e9af3173b2e1c0846f40acf918c3",+ "size": 567405, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.273",+ "version": "1.9.274", "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.273"+version = "1.9.274" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.273"+version = "1.9.274" edition = "2021" [dependencies]
fusion_detect.py+47−3@@ -964,6 +964,26 @@ def _envelope_watch(seconds: float, minimize: bool): # fights Fusion's OWN self-activation (a transition with no user input behind it). _prev_was_fusion = False _fg_pid = ctypes.wintypes.DWORD(0)+ # ⭐ FUSION ALREADY IN FRONT WHEN THIS ENVELOPE STARTS IS THE USER'S DOING (John,+ # 2026-08-29: "when you're running your verbs and I click the taskbar icon to+ # bring Fusion to the foreground, you end up pushing it to the background on me").+ # The hole: between two verbs no watcher is alive, the user raises Fusion and+ # just looks at it; the NEXT verb starts a fresh watcher whose first tick sees+ # Fusion in front with no input in the last 2s, the latch is still False from+ # whoever reset it last, and it demotes HIS window. An envelope only exists to+ # catch raises that happen DURING the bridge's own work, so whatever is in front+ # at its start was put there before the work began: yield to it.+ try:+ pids = _fusion_family_pids()+ last_refresh = time.time()+ fg0 = user32.GetForegroundWindow()+ if fg0 and pids:+ user32.GetWindowThreadProcessId(fg0, ctypes.byref(_fg_pid))+ if _fg_pid.value in pids:+ _USER_WATCHING[0] = True+ _prev_was_fusion = True+ except Exception:+ pass while time.time() < end: now = time.time() if now - last_refresh > 2.0:@@ -976,7 +996,9 @@ def _envelope_watch(seconds: float, minimize: bool): user32.GetWindowThreadProcessId(fg, ctypes.byref(_fg_pid)) fg_is_fusion = _fg_pid.value in pids if fg_is_fusion:- # User deliberately brought Fusion up -> latch and stand down.+ # User deliberately brought Fusion up -> latch and stand down. The input+ # window is 2s; a taskbar click IS input, so a raise with input behind+ # it is his even when the click landed a beat before this tick. if (not _prev_was_fusion) and _user_active_recently(): _USER_WATCHING[0] = True if not _USER_WATCHING[0]:@@ -1034,6 +1056,19 @@ def _envelope_watch(seconds: float, minimize: bool): # inactivity, the way nb does it"). Per-verb on/off flicker was wrong. +def _envelope_user_active_recently(window_ms: int = 2000) -> bool:+ """True when real keyboard/mouse input happened within window_ms (GetLastInputInfo)."""+ try:+ class _LII(ctypes.Structure):+ _fields_ = [("cbSize", ctypes.wintypes.UINT), ("dwTime", ctypes.wintypes.DWORD)]+ lii = _LII(); lii.cbSize = ctypes.sizeof(_LII)+ if ctypes.windll.user32.GetLastInputInfo(ctypes.byref(lii)):+ return (ctypes.windll.kernel32.GetTickCount() - lii.dwTime) < window_ms+ except Exception:+ pass+ return False++ def _focus_guard(seconds: float = 150.0, restore_fg_lock=None, restore_min_anim=None): """For `seconds`, demote any Autodesk-FAMILY window that steals the foreground. @@ -1073,8 +1108,17 @@ def _focus_guard(seconds: float = 150.0, restore_fg_lock=None, restore_min_anim= wpid = ctypes.wintypes.DWORD(0) user32.GetWindowThreadProcessId(fg, ctypes.byref(wpid)) if wpid.value in pids:- # minimize the focus-stealing family window, no activation- user32.ShowWindowAsync(fg, _SW_SHOWMINNOACTIVE)+ # YIELD TO THE USER (John, 2026-08-29): a family window in front with the+ # user's input behind it (a taskbar click, alt-tab) is his choice, and+ # the launch guard used to minimize it anyway. Only a raise with no input+ # in the last 2s is Fusion's own grab.+ if _USER_WATCHING[0] or _envelope_user_active_recently():+ _USER_WATCHING[0] = True+ else:+ # minimize the focus-stealing family window, no activation+ user32.ShowWindowAsync(fg, _SW_SHOWMINNOACTIVE)+ elif _USER_WATCHING[0]:+ _USER_WATCHING[0] = False # the user moved on; guard again except Exception: pass time.sleep(0.1)
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.273"+DASH_VERSION="1.9.274" 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.273",+ "version": "1.9.274", "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.273",+ "version": "1.9.274", "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+29@@ -13038,6 +13038,35 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict: except Exception: pass _save()+ # SECOND PASS FOR THE FIRST-PART RACE (run 23cd0f587c13, 2026-08-29): right after the+ # bind reopens the library, Fusion reported NO active document for ~90s while its cloud+ # save settled, so part 1 of 10 scored not_proven on library_not_active and the other+ # nine passed. That is a timing miss, not a bad part: re-prove exactly those parts once,+ # after the rest, when the library has long been active.+ _retry = [r for r in _prove_results if not r["proven"]+ and "ACTIVE document" in str(r.get("error") or "")]+ for _rr in _retry:+ if _cancel_requested(run_id):+ break+ _dev = _rr["part"]+ state["stageLabel"] = "re-proving %s (the library was not active on its first pass)" % _dev+ _save()+ def _frame_for_retry(entry, _d=_dev):+ entry = dict(entry); entry["part"] = _d; entry["kind"] = "proof"; entry["retry"] = True+ return _publish_frame(entry)+ _r2 = _handle_prove_library(fusion_info, {+ "libraryPath": target_lbr, "name": _dev,+ "f3dUrn": ((state.get("bind") or {}).get("wip_urn") or ""),+ "_onFrame": _frame_for_retry})+ _rr.update(proven=bool(_r2.get("proven")), error=_r2.get("error"), retried=True)+ try:+ _lib_stem = (target_lbr or "").replace("\\", "/").rsplit("/", 1)[-1].rsplit(".", 1)[0].lower()+ _rr["scratchClosed"] = _close_docs_opened_since(_docs_before, keep={_lib_stem})+ except Exception:+ pass+ state["provedParts"] = _prove_results+ _save()+ _all_ok = all(r["proven"] for r in _prove_results) # The library is proven only if EVERY part is. One good part does not vouch # for nine unchecked ones. prove = {"proven": _all_ok, "parts": _prove_results,