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
+97−20
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.109+1.9.110
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.109",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.124/adom-bridge-fusion-v1.9.109.zip",- "sha256": "3da88d4f9a2a32ef53f6a0f8cde3f3cef041721e0da2f0a65098e5f5078fe13d",- "size": 444132,+ "version": "1.9.110",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.125/adom-bridge-fusion-v1.9.110.zip",+ "sha256": "8ee9ee59bb7d37393e339ef596164f1cd8b8b6571f933e9cad1251684bc4f553",+ "size": 444977, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.109",+ "version": "1.9.110", "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.124"+version = "1.9.125" edition = "2021" [dependencies]
dev-skills/fusion-dialogs/SKILL.md+20@@ -97,6 +97,26 @@ Three distinct states that look identical to a naive caller, all now distinguish Collapsing these into one error is what sent ab hunting a phantom dialog (#38) and made a 9-minute surface look like a dead add-in (#40). +## The deterministic-close rule (John, 2026-08-21, after the THIRD Save dialog)++> "save programmatically before a dialog pops up asking you to save. cuz that will make all+> your code more deterministic where you don't have to use a screenshot and analysis of it+> (which requires ai)"++**The operation that dirties a document resolves that document's state before returning.**+Not the janitor three minutes later. Not the next open tripping over it. Inside the verb:++1. Done rendering/minting from a scratch doc -> `_close_bridge_doc_verified(name)`:+ `close_document {save:false}`, then VERIFY via `document_info` the doc is gone; if+ Fusion raised Save-As anyway (never-saved docs can), answer it in the SAME call.+2. The `.lbr` on disk is the artifact. The Fusion document is a rendering surface -+ disposable by construction, so `save:false` is always correct for bridge scratch docs.+3. Determinism is the point: state checks (document lists, file contents) decide everything;+ a screenshot is evidence for humans, never the mechanism the code relies on.++The janitor and the sentinel remain as BACKSTOPS for docs dirtied by crashed runs or other+routes - but if they ever fire for a live verb's document, that verb has a bug.+ ## Checklist for a new verb that drives the UI 1. Can it prompt? List every dialog it could raise, then remove each cause.
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.124"+DASH_VERSION="1.9.125" 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.124",+ "version": "1.9.125", "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.124",+ "version": "1.9.125", "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+58−4@@ -4778,11 +4778,11 @@ def _close_idle_bridge_docs() -> dict: if not _is_bridge_doc_text(name): continue # the user's document - never ours to close try:- r = _proxy_to_addin("close_document", {"name": name.rstrip("*"), "save": False}, timeout=20)- if r.get("success"):+ r = _close_bridge_doc_verified(name)+ if r.get("closed"): closed.append(name)- print("[Fusion Bridge] janitor: closed dirty bridge doc %r (save:false) so it "- "cannot raise a Save prompt on the user" % name)+ print("[Fusion Bridge] janitor: closed dirty bridge doc %r (verified gone, "+ "any Save-As answered in the same call)" % name) except Exception: pass return {"closed": closed, "why": "closed %d dirty bridge doc(s)" % len(closed)}@@ -8978,6 +8978,50 @@ def _prove_capture(label: str, view: str) -> dict: return out ++def _close_bridge_doc_verified(name: str, timeout_s: int = 30) -> dict:+ """Close a BRIDGE-owned scratch document deterministically - no dialog survives this call.++ John, 2026-08-21, third Save dialog in two days: "save programmatically before a dialog+ pops up asking you to save. cuz that will make all your code more deterministic where you+ don't have to use a screenshot and analysis of it." The rule this implements: the+ operation that dirties a document RESOLVES that document's state before returning. Not a+ janitor three minutes later, not the next open tripping over it - inside the same verb.++ Sequence: close_document {save:false} -> verify via document_info that it is GONE. If+ Fusion raised its Save-As anyway (a never-saved doc can), answer Don't Save HERE, in the+ same call, then re-verify. Deterministic by construction: state checks, no screenshots.+ """+ import time as _t+ n = str(name or "").rstrip("*").strip()+ if not n:+ return {"closed": False, "why": "no name"}+ try:+ _proxy_to_addin("close_document", {"name": n, "save": False}, timeout=20)+ except Exception:+ pass+ deadline = _t.time() + timeout_s+ while _t.time() < deadline:+ try:+ di = _proxy_to_addin("document_info", {}, timeout=6)+ docs = [str(d.get("name") or "").rstrip("*").strip().lower()+ for d in ((di.get("data") or {}).get("openDocuments") or [])]+ if di.get("success") and n.lower() not in docs:+ return {"closed": True}+ except Exception:+ pass+ # A never-saved doc can raise Save-As despite save:false - answer it NOW, same call.+ try:+ got = _dismiss_save_prompt_if_bridge_doc()+ if got.get("handled"):+ print("[Fusion Bridge] close(%r): answered the Save prompt inside the same "+ "call (deterministic close, never left on screen)" % n)+ except Exception:+ pass+ _t.sleep(2)+ return {"closed": False, "why": "document still open after %ds" % timeout_s}++ def _handle_prove_library(fusion_info: dict, args: dict) -> dict: """PROVE a .lbr with the FOUR evidence images John specified (2026-08-21): @@ -9051,6 +9095,16 @@ def _handle_prove_library(fusion_info: dict, args: dict) -> dict: out = {"success": proven, "proven": proven, "libraryPath": lbr, "deviceset": want, "artifacts": artifacts, "missing": missing, "evidence": evidence, "imagesCaptured": len(captured), "imagesRequired": 4}+ # RESOLVE OUR OWN DOCUMENT STATE BEFORE RETURNING (deterministic-close rule): the four+ # views dirtied the library document; closing it here, verified, means no Save dialog+ # can ever be raised at the user for this run's scratch work. The .lbr ON DISK is the+ # artifact; the Fusion document was only ever a rendering surface.+ try:+ _stem = lbr.rsplit("/", 1)[-1].rsplit(".", 1)[0]+ _note_bridge_doc(_stem)+ out["scratchDocClosed"] = _close_bridge_doc_verified(_stem).get("closed", False)+ except Exception:+ pass try: _PROVE_LAST[0] = dict(out) import tempfile as _tf