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 9 file(s)
9 files changed
+115−19
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.117+1.9.118
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.117",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.132/adom-bridge-fusion-v1.9.117.zip",- "sha256": "715c53998a0cb71336e7ab812044c5759e77f617b0267270de59120ded0be6af",- "size": 453796,+ "version": "1.9.118",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.133/adom-bridge-fusion-v1.9.118.zip",+ "sha256": "d38b614af6e09960c7448bd55d5190cb4cdeb983929e4a15d13be647d7744f1a",+ "size": 454897, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.117",+ "version": "1.9.118", "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.132"+version = "1.9.133" edition = "2021" [dependencies]
dev-skills/fusion-verb-timing/SKILL.md+35@@ -80,3 +80,38 @@ Check the measurements before believing it: That comparison is the difference between "slow" and "stuck", and it is a measurement rather than a judgement call. See `fusion-dialogs` for the neighbouring trap: a modal holding the main thread looks exactly like a slow verb from outside.+++## Multi-stage chains: per-stage estimates that improve with every use++John's requirement (2026-08-21): web-control must show "as accurate of progress bars as we+can", per user machine, with NO dedicated measurement pass - measure from live runs and+update the averages after every call, forever.++The method, as implemented in `fusion_create_library`:++1. **Name each stage as a timing key** (`stage:convert`, `stage:bind`, `stage:prove`) and+ `log_run()` its actual when it completes. Same store as everything else, so the rolling+ per-machine p50 updates on every run automatically. Different computers get different+ numbers by construction - the store lives on the box.+2. **Publish the plan up front.** The chain's persisted state carries+ `plan: [{stage, estimatedSec, confidence}]` built from `estimate("stage:X", seed)`.+ Seeds are used only until 1-2 real samples exist, then the machine's own history wins+ (`measured` at 3+ samples).+3. **Compute progress AT READ TIME, not with a ticker.** The poll verb derives+ `percent = (sum of completed stages' estimates + elapsed-of-current, capped at 95% of+ its estimate) / total` from `stagesDone` + `stageStartedAt`. Every poll is fresh, there+ is no background thread to die, and a wedged stage shows `overdue: true` instead of a+ frozen number.+4. **Cap the current stage's credit at 95% of its estimate.** A stage must never appear+ finished before it reports finished - the bar creeps and holds, exactly like the+ single-verb rule.+5. **Confidence is the WORST of the plan** in spirit: all-measured -> `measured`,+ all-unknown -> `unknown`, else `typical`. ab dims non-measured bars, so a chain that is+ still learning looks less authoritative than one with history - which is honest.++Why not a measurement pass: a pass measures one day on one box. The live loop measures+every real run on every real box, so estimates track the machine as it changes (SSD swap,+cloud latency, Fusion updates). The first run on a fresh box shows seeds at `typical`; by+the third run the user has personal `measured` numbers. That is the whole design: the bar+gets better BECAUSE the user uses it.
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.132"+DASH_VERSION="1.9.133" 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.132",+ "version": "1.9.133", "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.132",+ "version": "1.9.133", "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+61−3@@ -9561,6 +9561,39 @@ def _handle_prove_result(fusion_info: dict, args: dict) -> dict: "error": "No fusion_prove_library run has completed on this box yet.", "_hint": "Run fusion_prove_library {libraryPath}; if the relay times out, the " "bridge keeps working - poll this verb until the result appears."}+ # LIVE PROGRESS FOR WEB-CONTROL (John, 2026-08-21: "as accurate of progress bars as we+ # can ... you should know how long stuff takes by measuring it"). Computed AT READ TIME+ # from the persisted stage plan + this machine's measured stage history, so every poll+ # gets fresh numbers with no ticker thread: percent = (sum of completed stages'+ # estimates + elapsed of the current stage, capped at 95% of its estimate) / total.+ # The estimates are the rolling per-machine p50s that update after EVERY run, so the+ # bar gets more accurate the more this user uses it - per box, automatically.+ try:+ if res.get("stage") not in (None, "done", "failed") and res.get("plan"):+ import time as _tp+ plan = res.get("plan") or []+ total = sum(float(p.get("estimatedSec") or 0) for p in plan) or 1.0+ done_names = {d.get("stage") for d in (res.get("stagesDone") or [])}+ done_est = sum(float(p.get("estimatedSec") or 0) for p in plan+ if p.get("stage") in done_names)+ cur = next((p for p in plan if p.get("stage") not in done_names), None)+ cur_elapsed = max(0.0, _tp.time() - float(res.get("stageStartedAt") or _tp.time()))+ cur_est = float((cur or {}).get("estimatedSec") or 1)+ cur_credit = min(cur_elapsed, cur_est * 0.95)+ pct = int(100 * (done_est + cur_credit) / total)+ eta = max(0, int(total - done_est - cur_credit))+ confs = [p.get("confidence") for p in plan]+ res["progress"] = {+ "percent": min(95, pct), "etaSec": eta,+ "elapsedSec": int(cur_elapsed), "stepLabel": res.get("stage"),+ "estimatedSec": int(total),+ "confidence": ("measured" if all(c == "measured" for c in confs)+ else "unknown" if all(c == "unknown" for c in confs)+ else "typical"),+ "overdue": cur_elapsed > cur_est,+ }+ except Exception:+ pass want = str(args.get("runId") or "") if want and str(res.get("runId") or "") != want: return {"success": False, "errorCode": "run_not_found",@@ -9623,10 +9656,32 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict: encoding="utf-8").write(json.dumps(state)) except Exception: pass+ import timings as _tmc+ import time as _tc+ # Stage estimates are MEASURED per machine and self-improving: each completed stage+ # records its actual into the rolling store, so the very next run's bar is paced by+ # what THIS box just did. Seeds (used only until real samples exist): convert 5s,+ # bind 60s (measured 45s on AdomLapper), prove 300s (four frames + thumbnail wait).+ _STAGES = [("convert", 5.0, bool(sym_p or mod_p)),+ ("bind", 60.0, bool(step_p)),+ ("prove", 300.0, True)]+ state["plan"] = [{"stage": n, "estimatedSec": round(_tmc.estimate("stage:" + n, f)[0] or f, 1),+ "confidence": _tmc.estimate("stage:" + n, f)[1]}+ for n, f, active in _STAGES if active]+ state["stagesDone"] = []+ def _enter(stage_name):+ state["stage"] = stage_name+ state["stageStartedAt"] = _tc.time()+ _save()+ def _leave(stage_key):+ took = _tc.time() - float(state.get("stageStartedAt") or _tc.time())+ _tmc.log_run("stage:" + stage_key, took, ok=True)+ state["stagesDone"] = state.get("stagesDone", []) + [+ {"stage": stage_key, "seconds": round(took, 1)}] try: target_lbr = lbr_p if sym_p or mod_p:- state["stage"] = "converting (adom-lbr)"; _save()+ _enter("converting (adom-lbr)") conv = _handle_import_kicad(fusion_info, { "kicadSymbolPath": sym_p, "kicadFootprintPath": mod_p, "libraryPath": lbr_p, "pinMap": args.get("pinMap"),@@ -9636,19 +9691,22 @@ def _handle_create_library(fusion_info: dict, args: dict) -> dict: "packages", "symbols", "pinMapApplied")} if not conv.get("success"): state.update(stage="failed", success=False); _save(); return+ _leave("convert") target_lbr = conv.get("libraryPath") state["libraryPath"] = target_lbr if step_p:- state["stage"] = "binding 3D (STEP -> f3d -> package3d)"; _save()+ _enter("binding 3D (STEP -> f3d -> package3d)") bind = dispatch_command("bind_library_3d", {"libraryPath": target_lbr, "stepPath": step_p}) state["bind"] = {k: bind.get(k) for k in ("success", "error", "wip_urn")} if not bind.get("success"): state.update(stage="failed", success=False); _save(); return- state["stage"] = "proving (four evidence frames)"; _save()+ _leave("bind")+ _enter("proving (four evidence frames)") prove = _handle_prove_library(fusion_info, {"libraryPath": target_lbr, "name": args.get("name")})+ _leave("prove") state.update(stage="done", success=bool(prove.get("proven")), prove=prove) _save() except Exception as e: