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
+64−36
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.307+1.9.308
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.307",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.307/adom-bridge-fusion-v1.9.307.zip",- "sha256": "345900735e22a1584e43880742c189f82af2800910863342444538bf157eff48",- "size": 589478,+ "version": "1.9.308",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.308/adom-bridge-fusion-v1.9.308.zip",+ "sha256": "a5a24b8df324cb1083e9502d87431846809dfeb7b07124be85be9122770eeb1d",+ "size": 589871, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.307",+ "version": "1.9.308", "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.307"+version = "1.9.308" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.307"+version = "1.9.308" 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.307"+DASH_VERSION="1.9.308" 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.307",+ "version": "1.9.308", "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.307",+ "version": "1.9.308", "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+43−18@@ -1423,25 +1423,49 @@ _ALERT_RE = re.compile(r"New Alert message\.\s*(?:Tooltip:\s*(?P<tip>.*?))?" r"(?:,\s*Long Message:\s*(?P<long>.*?))?\s*$") -def _fusion_log_path():- """Newest Fusion AppLogFile for the signed-in user, or None."""- try:- base = os.path.join(os.path.expanduser("~"), "AppData", "Local", "Autodesk",- "Autodesk Fusion 360")- best = None- for entry in os.listdir(base):- d = os.path.join(base, entry, "logs")- if not os.path.isdir(d):+def _fusion_log_path(diag: dict = None):+ """Newest Fusion AppLogFile, or None. `diag` (optional dict) is filled with WHY it+ failed - a swallowed reason is how this shipped broken the first time."""+ d_ = diag if diag is not None else {}+ bases = []+ try:+ lad = os.environ.get("LOCALAPPDATA") or os.path.join(+ os.path.expanduser("~"), "AppData", "Local")+ for nm in ("Autodesk Fusion 360", "Autodesk Fusion"):+ bases.append(os.path.join(lad, "Autodesk", nm))+ # A bridge running as another user still finds the interactive user's logs.+ users = os.path.dirname(os.path.expanduser("~"))+ if os.path.isdir(users):+ for u in os.listdir(users):+ for nm in ("Autodesk Fusion 360", "Autodesk Fusion"):+ bases.append(os.path.join(users, u, "AppData", "Local", "Autodesk", nm))+ except Exception as e:+ d_["baseError"] = str(e)[:160]+ d_["basesTried"] = bases[:6]+ best = None+ for base in bases:+ try:+ if not os.path.isdir(base): continue- for f in os.listdir(d):- if f.startswith("AppLogFile") and f.endswith(".log"):- fp = os.path.join(d, f)- m = os.path.getmtime(fp)- if best is None or m > best[0]:- best = (m, fp)- return best[1] if best else None- except Exception:- return None+ d_.setdefault("baseFound", base)+ for entry in os.listdir(base):+ ld = os.path.join(base, entry, "logs")+ if not os.path.isdir(ld):+ continue+ for f in os.listdir(ld):+ if f.startswith("AppLogFile") and f.endswith(".log"):+ fp = os.path.join(ld, f)+ try:+ m = os.path.getmtime(fp)+ except Exception:+ continue+ if best is None or m > best[0]:+ best = (m, fp)+ except Exception as e:+ d_.setdefault("scanError", "%s: %s" % (base[-40:], str(e)[:120]))+ if best is None:+ d_.setdefault("why", "no AppLogFile*.log found under any base")+ return best[1] if best else None def _fusion_alerts(since_sec: float = 300.0, tail_bytes: int = 400000) -> list:@@ -2805,6 +2829,7 @@ COMMAND_HANDLERS = { "success": True, "alerts": _fusion_alerts(float(args.get("sinceSec", 300))), "logFile": _fusion_log_path(),+ "diagnostics": (lambda _d: (_fusion_log_path(_d), _d)[1])({}), "_hint": ("Fusion draws many errors as in-canvas CEF overlays with NO top-level " "window, so check_dialogs alone cannot see them; these come from Fusion's " "own AppLogFile 'New Alert message' entries. An empty list means Fusion "