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 10 file(s)
10 files changed
+94−23
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.130+1.9.131
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.130",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.146/adom-bridge-fusion-v1.9.130.zip",- "sha256": "a01c28c9da36414cb2ae1e8854ecc144a0f00da33987f5fc7da6cca5f6be7b96",- "size": 465935,+ "version": "1.9.131",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.147/adom-bridge-fusion-v1.9.131.zip",+ "sha256": "3f5db429f5df7512ca40efc1ee81485c5ef0b08aede8e1e63f74c29c407c5126",+ "size": 466553, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.130",+ "version": "1.9.131", "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.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.9.138"+version = "1.9.147" edition = "2021" [dependencies]
dashboard/src/main.rs+31@@ -1008,6 +1008,37 @@ fn handle_conn(app: &Arc<App>, mut stream: TcpStream) { respond_json(&mut stream, &serde_json::json!({"targets": rows, "_hint": "One Autodesk seat: start Fusion on whichever box suits the moment - the seat follows automatically (the other box's Fusion suspends resumably). Pass ?target=<name> on /api/status and target in /api/action bodies."})); }+ ("GET", "/api/health") => {+ // THE DOCK'S HEALTH PROBE (issue #48): dockbar.json declares timeout_ms 2000+ // and the dock honors the app's own declaration - but /api/status does a live+ // bridge round trip that takes seconds. This answers INSTANTLY from the+ // last_good cache that /api/status fills; an empty cache answers "unknown"+ // and warms itself in the background so the next probe has a real rollup.+ let t = qs_target.clone().unwrap_or_else(|| app.tgt());+ let cached = app.last_good.lock().unwrap().get(&t).cloned();+ match cached {+ Some((at, st)) => {+ respond_json(&mut stream, &serde_json::json!({+ "state": st["state"].as_str().unwrap_or("ok"),+ "leds": st["leds"],+ "cachedAgeSec": at.elapsed().as_secs(),+ "dashboardVersion": VERSION}));+ }+ None => {+ respond_json(&mut stream, &serde_json::json!({+ "state": "unknown",+ "detail": "no status gathered yet - warming in the background",+ "dashboardVersion": VERSION}));+ let app2 = app.clone();+ std::thread::spawn(move || {+ let st = gather_status(&app2.ai_thread, &t);+ if st["answered"].as_bool().unwrap_or(false) {+ app2.last_good.lock().unwrap().insert(t, (Instant::now(), st));+ }+ });+ }+ }+ } ("GET", "/api/ping") => { // INSTANT identity probe - /api/status does a live bridge round trip (seconds), // which made the self-background launch probe time out and the dock step hang
dockbar.json+1−1@@ -31,7 +31,7 @@ } }, "health": {- "url": "/api/status",+ "url": "/api/health", "poll_seconds": 15, "timeout_ms": 2000 }
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.138"+DASH_VERSION="1.9.147" 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.146",+ "version": "1.9.147", "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.146",+ "version": "1.9.147", "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+43−6@@ -9932,13 +9932,36 @@ def _handle_prove_result(fusion_info: dict, args: dict) -> dict: pass want = str(args.get("runId") or "") if want and str(res.get("runId") or "") != want:+ # PER-RUN store first (issue #47: concurrent chains used to overwrite the single+ # latest slot, so a valid runId could match NOTHING and the caller's poll hung).+ try:+ import tempfile as _tfr+ _runs = json.loads(open(os.path.join(_tfr.gettempdir(),+ "fusion-prove-runs.json"),+ encoding="utf-8").read())+ except Exception:+ _runs = {}+ if want in _runs:+ _r2 = _runs[want]+ if not args.get("inlineFrames"):+ try:+ _r2 = json.loads(json.dumps(_r2))+ for e in ((_r2.get("prove") or {}).get("evidence") or []) + (_r2.get("evidence") or []):+ e.pop("thumbnailDataUrl", None)+ except Exception:+ pass+ return {"success": True, "result": _r2,+ "_hint": "Your run, from the per-run store (concurrent chains no "+ "longer overwrite each other)."} return {"success": False, "errorCode": "run_not_found",- "error": "The stored result is from a DIFFERENT run (%s, wanted %s)." % (- res.get("runId"), want),- "_hint": "Your run has not persisted a result yet - keep polling with the "- "runId that fusion_create_library returned. Without runId filtering "- "a stale result from a prior run can masquerade as yours (caught "- "live, 2026-08-21)."}+ "error": "No stored result for run %s (latest is %s; %d run(s) in the "+ "per-run store)." % (want, res.get("runId"), len(_runs)),+ "knownRunIds": list(_runs)[-8:],+ "_hint": "If your chain JUST started, keep polling - its first state lands "+ "within seconds. A runId absent after ~30s means the chain never "+ "started (check the create_library response for an immediate "+ "refusal like lbr_preflight_failed) - treat that as TERMINAL "+ "rather than polling out your budget."} return {"success": True, "result": res, "_hint": "The last completed prove run (survives relay timeouts and respawns)."} @@ -10005,10 +10028,24 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict: state = {"stage": "starting", "success": None, "libraryPath": lbr_p or None, "runId": run_id} def _save():+ # PER-RUN persistence (issue #47 follow-up, 2026-08-21): a single latest-run+ # slot meant two concurrent chains OVERWROTE each other - the matrix's poll+ # hung 18 minutes on a runId whose state my verification chain had clobbered,+ # and a no-runId poll returned someone else's run. Every run keeps its own+ # entry (capped at 20, insertion order); latest stays for no-runId polls. try: _PROVE_LAST[0] = dict(state) open(os.path.join(_tf.gettempdir(), "fusion-prove-last.json"), "w", encoding="utf-8").write(json.dumps(state))+ _runs_p = os.path.join(_tf.gettempdir(), "fusion-prove-runs.json")+ try:+ _runs = json.loads(open(_runs_p, encoding="utf-8").read())+ except Exception:+ _runs = {}+ _runs[run_id] = dict(state)+ while len(_runs) > 20:+ _runs.pop(next(iter(_runs)))+ open(_runs_p, "w", encoding="utf-8").write(json.dumps(_runs)) except Exception: pass import timings as _tmc