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 74 file(s)
10 files changed
+95−26
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.244+1.9.245
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.244",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.244/adom-bridge-fusion-v1.9.244.zip",- "sha256": "4e6d8a9e878a875bf1c8d624662a84322f1fb59506d79d97c007eb0b4794afb1",- "size": 540459,+ "version": "1.9.245",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.245/adom-bridge-fusion-v1.9.245.zip",+ "sha256": "8dc2672822ad4c7a504009d0fba2e79b06b04d263fd1bb8fd158f4d0731f00b1",+ "size": 541165, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.244",+ "version": "1.9.245", "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.244"+version = "1.9.245" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.244"+version = "1.9.245" 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.244"+DASH_VERSION="1.9.245" 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.244",+ "version": "1.9.245", "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.244",+ "version": "1.9.245", "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+47−8@@ -13529,10 +13529,38 @@ def _human_secs(v: float) -> str: return "%dm %02ds" % (m, sec) if sec else "%dm" % m -_LIVE_FEED = {"thread": None, "stop": False, "tick": 0, "frames": [], "startedAt": None}+_LIVE_FEED = {"thread": None, "stop": False, "tick": 0, "frames": [], "startedAt": None,+ # HONESTY (2026-08-28): tick counts ATTEMPTS. A feed that reports running:true+ # with tick climbing and buffered:0 for ten minutes was silently failing every+ # capture (except: pass). captured/noHwnd/lastError make that visible.+ "captured": 0, "noHwnd": 0, "lastError": None, "lastErrorAt": None, "lastCaptureAt": None} _LIVE_FEED_MAX = 600 # ring buffer: ~10 min at 1 fps ++def _live_feed_health(out: dict) -> dict:+ """Attach capture health to a live-feed reply. running:true + tick climbing is NOT proof+ that frames exist (2026-08-28: ten minutes of running:true, tick 199, buffered 0, every+ capture failing silently). captured/lastError let a caller tell 'live' from 'spinning'."""+ import time as _t+ f = _LIVE_FEED+ out.update(captured=f.get("captured", 0), noHwnd=f.get("noHwnd", 0),+ lastError=f.get("lastError"), lastErrorAt=f.get("lastErrorAt"),+ lastCaptureAt=f.get("lastCaptureAt"))+ tick = f.get("tick") or 0+ if tick >= 5 and not f.get("captured"):+ out["healthy"] = False+ out["_honesty"] = ("%d capture attempts, ZERO frames. This feed is spinning, not live. "+ "lastError=%s noHwnd=%d. Do not present it as a video." %+ (tick, f.get("lastError"), f.get("noHwnd", 0)))+ elif f.get("lastCaptureAt") and _t.time() - f["lastCaptureAt"] > 15 and out.get("running"):+ out["healthy"] = False+ out["_honesty"] = ("no frame for %.0fs although running. lastError=%s" %+ (_t.time() - f["lastCaptureAt"], f.get("lastError")))+ else:+ out["healthy"] = bool(f.get("captured"))+ return out+ def _handle_live_feed(fusion_info: dict, args: dict) -> dict: """A ~1 fps look INTO Fusion while the bridge drives it, as a box-side ring buffer. @@ -13564,17 +13592,17 @@ def _handle_live_feed(fusion_info: dict, args: dict) -> dict: action = str(args.get("action") or "status").lower() alive = bool(_LIVE_FEED["thread"] and _LIVE_FEED["thread"].is_alive()) if action == "status":- return {"success": True, "running": alive, "tick": _LIVE_FEED["tick"],- "buffered": len(_LIVE_FEED["frames"]), "startedAt": _LIVE_FEED["startedAt"]}+ return _live_feed_health({"success": True, "running": alive, "tick": _LIVE_FEED["tick"],+ "buffered": len(_LIVE_FEED["frames"]), "startedAt": _LIVE_FEED["startedAt"]}) if action == "frames": since = int(args.get("since") or 0) fr = [f for f in _LIVE_FEED["frames"] if f["tick"] > since]- return {"success": True, "running": alive, "tick": _LIVE_FEED["tick"],+ return _live_feed_health({"success": True, "running": alive, "tick": _LIVE_FEED["tick"], "frames": fr[-200:], "count": len(fr), "_hint": ("Each frame is a BOX path (this machine); read_file it from the " "container and publish it. kind is main|popup; proof frames come " "from fusion_prove_result evidence[] with kind:'proof'. Pass "- "since:<tick> to get only what you have not seen.")}+ "since:<tick> to get only what you have not seen.")}) if action == "stop": _LIVE_FEED["stop"] = True return {"success": True, "stopped": True, "tick": _LIVE_FEED["tick"]}@@ -13582,7 +13610,8 @@ def _handle_live_feed(fusion_info: dict, args: dict) -> dict: return {"success": True, "alreadyRunning": True, "tick": _LIVE_FEED["tick"]} interval = max(0.5, float(args.get("intervalSec") or 1.0)) max_sec = min(3600.0, float(args.get("maxSec") or 600.0))- _LIVE_FEED.update(stop=False, tick=0, frames=[], startedAt=_t.time())+ _LIVE_FEED.update(stop=False, tick=0, frames=[], startedAt=_t.time(), captured=0, noHwnd=0,+ lastError=None, lastErrorAt=None, lastCaptureAt=None) def _run(): t0 = _t.time()@@ -13592,13 +13621,22 @@ def _handle_live_feed(fusion_info: dict, args: dict) -> dict: try: info = get_fusion_window_info() or {} hwnd = info.get("hwnd") or (info.get("mainWindow") or {}).get("hwnd")+ if not hwnd:+ _LIVE_FEED["noHwnd"] += 1 if hwnd: shot = _ad_call("desktop_screenshot_window", {"hwnd": int(hwnd)}, timeout=20) or {} # BOX paths: fullPath (main) and fullPathHost / localFullPath per popup. main = shot.get("fullPath") or shot.get("fullPathHost") or shot.get("path") title = str(shot.get("title") or info.get("title") or "Fusion")[:60] now = _t.time()+ if not main:+ _LIVE_FEED["lastError"] = ("screenshot returned no path: " ++ str(shot.get("error") or shot.get("errorCode") or+ list(shot)[:6]))[:200]+ _LIVE_FEED["lastErrorAt"] = now if main:+ _LIVE_FEED["captured"] += 1+ _LIVE_FEED["lastCaptureAt"] = now _LIVE_FEED["frames"].append({"tick": tick, "kind": "main", "at": now, "path": main, "title": title, "popups": len(shot.get("screenshots") or [])})@@ -13610,8 +13648,9 @@ def _handle_live_feed(fusion_info: dict, args: dict) -> dict: "title": str(sp_.get("title") or "dialog")[:50]}) if len(_LIVE_FEED["frames"]) > _LIVE_FEED_MAX: del _LIVE_FEED["frames"][: len(_LIVE_FEED["frames"]) - _LIVE_FEED_MAX]- except Exception:- pass+ except Exception as _e:+ _LIVE_FEED["lastError"] = ("%s: %s" % (type(_e).__name__, _e))[:200]+ _LIVE_FEED["lastErrorAt"] = _t.time() _t.sleep(interval) _LIVE_FEED["thread"] = None _LIVE_FEED["thread"] = _th.Thread(target=_run, daemon=True); _LIVE_FEED["thread"].start()
skills/fusion-ralph-test-via-wiki/SKILL.md+27@@ -105,6 +105,32 @@ separate windows a main capture omits). The chain's evidence frames are `kind:pr step label. A Browser panel, the main frame, and a proof shot are three different things; a viewer must never have to guess. The wiki may not render the feed; the bridge owns it anyway. +## A completed run looks like this (AdomLapper, 2026-08-28, run 8f3a376d6782)++Page https://wiki.adom.inc/ray/dac80504, Fusion lane, Create Fusion Library, trust modal+accepted. The page sent: fetch .lbr, `write_file`, fetch .step, `write_file`,+`fusion_create_library`, then `fusion_prove_result` every few seconds. The chain reported:++- `stage: done`, `prove.proven: true`, `partsProven 1 / partsTotal 1`, `evidenceCount 4`+ (symbol, footprint, package3d, ganged; every frame `kind: proof`, `part: DAC80504`).+- `bind` 57s, `wip_urn` minted, binding written into `part.lbr` on disk (a `.prebind`+ backup beside it) BEFORE the reopen, so closing the modified `part*` tab loses nothing.+- `partMetadata.ok: false` with the honest text: "1 of 1 component has no manufacturer part+ number", distributor coverage 0/0/0, `userAction` pointing upstream. The import still+ completed; the gap bubbled up. That is the contract.+- `scratchDocsClosed: 3`, `libraryDocClosed: true`, `fusion_get_app_state` documents `[]`.+- The page's third `.wc-res` (the one under the Create button, not the first one on the+ page) read "library created in Fusion". The page rendered no proof thumbnail yet (#57).++## The feed can spin without being live (fixed 1.9.245)++`fusion_live_feed` status said `running:true, tick:199, buffered:0` for ten minutes while+the run happened, and the drainer landed nothing. Tick counted ATTEMPTS and every capture+failure died in `except: pass`. As of 1.9.245 status and frames carry `captured`, `noHwnd`,+`lastError`, `lastCaptureAt`, `healthy`, and an `_honesty` line when the tick climbs with no+frame. The drainer prints that line. Rule: a feed is live when `captured` climbs, never+when `tick` does. Read `healthy` before you tell anyone they have a video.+ ## Dev checklist before saying "it works" - [ ] Ran the loop above on a real box, not a stub, and read the frames.@@ -112,6 +138,7 @@ viewer must never have to guess. The wiki may not render the feed; the bridge ow - [ ] The verb sequence the page sent matches the documented lane. - [ ] `fusion_prove_result` reached `done` with `verdict: proven` and `partsProven == partsTotal`. - [ ] `partMetadata` reported the part-number state (it never blocks, it must still show).+- [ ] `fusion_live_feed` status shows `healthy: true` and `captured` climbing, or you said the feed was not live. - [ ] No Untitled documents left behind (`fusion_get_app_state` shows `[]`). - [ ] Nothing restarted Fusion without the user's consent (ledger has no unexplained restart). - [ ] Closed your own pup window; never touched the user's.