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
+60−18
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.9.83+1.9.84
adom-bridge-fusion-manifest.json+4−4@@ -1,10 +1,10 @@ { "manifest_version": 1, "name": "fusion360",- "version": "1.9.83",- "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.95/adom-bridge-fusion-v1.9.83.zip",- "sha256": "d8bef5c268ff92fa1c638a4506773f9907efe0bfc9f690426c34fa3f94bf2cf9",- "size": 422322,+ "version": "1.9.84",+ "url": "https://wiki.adom.inc/download/adom/fusion-bridge/1.9.96/adom-bridge-fusion-v1.9.84.zip",+ "sha256": "29a67ca4aa4fd0a2fab15e38054e921699fad03721c6bbd982eef8a29bb34ba3",+ "size": 423118, "verbPrefixes": [ "fusion_" ],
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.9.83",+ "version": "1.9.84", "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.95"+version = "1.9.96" edition = "2021" [dependencies]
describe.py+1−1@@ -210,7 +210,7 @@ _T = [ ("fusion_set_window_sizing", "Read/toggle auto-sizing Fusion's WINDOW after launch (STICKY, default ON). Fusion opens at whatever geometry it last had, which after an automated launch is often a small default; the bridge grows it to ~92% of the monitor work area, centered, using SetWindowPos with NOACTIVATE (never ShowWindow/maximize) so focus is never stolen. A window the user maximized, or already sized to >=60% of the work area, is left alone. No args = read.", {"enabled": "optional bool (omit to read)"}, {"success": "bool", "sizeFusionWindow": "bool"}, 15, "fusion_state", False, {}), ("fusion_set_driving_badge", "Read/toggle the 'Adom is driving Fusion' TASKBAR OVERLAY BADGE (STICKY per user, default ON). While the bridge drives Fusion, its Windows taskbar button wears a small Adom mark so the user knows at a glance who is in control; it sheds automatically after 5 minutes of driving-verb idle. No args = read. Turning it off clears any badge immediately.", {"enabled": "optional bool (omit to read)"}, {"success": "bool", "showDrivingBadge": "bool"}, 15, "fusion_state", False, {}), ("fusion_set_seat_takeover", "Read/toggle the mid-session Autodesk seat-takeover sweep (STICKY per user, default ON). When Autodesk pops 'Active Sessions Exceeded' mid-session, the bridge clicks Continue through BOTH dialogs in the background: this machine takes the seat, the other machine's Fusion suspends RESUMABLY, the user gets one toast. No args = read current value. Gates only the passive sweep - a verb-driven fusion_start still grabs the seat (the user asked for Fusion, so the seat is implied).", {"enabled": "optional bool (omit to read)"}, {"success": "bool", "autoTakeOverSeat": "bool"}, 15, "fusion_readiness", False, {}),- ("fusion_state", "The RENDER-ME verb (kicad_state parity, issues #28/#30): running + window + dialog + busy state PLUS a fresh background screenshot of whatever Fusion is showing - the one verb that makes every background fusion_show_* result visible. SERVER-SIDE ONLY by design: it answers even while the add-in main thread is busy or wedged (activeDocument is best-effort with a short budget and skipped when busy). blockingDialogs carries the CLASSIFIED modal list (cause + resolution). imageAs:base64 inlines the PNG (auto-refused over 4MB - pull the screenshot path via pull_file instead).", {"screenshot": "optional bool (default true)", "imageAs": "optional str path|base64 (default path)"}, {"success": "bool", "running": "bool", "activeDocument": "str", "mainThreadBusy": "dict|null", "blockingDialogs": "list", "screenshot": "str path", "screenshotBase64": "str (imageAs:base64 only)"}, 60, None, False, {}),+ ("fusion_state", "The RENDER-ME verb (kicad_state parity, issues #28/#30): running + window + dialog + busy state PLUS a fresh background screenshot of whatever Fusion is showing - the one verb that makes every background fusion_show_* result visible. SERVER-SIDE ONLY by design: it answers even while the add-in main thread is busy or wedged (activeDocument is best-effort with a short budget and skipped when busy). blockingDialogs carries the CLASSIFIED modal list (cause + resolution). imageAs:base64 inlines the PNG (auto-refused over 4MB - pull the screenshot path via pull_file instead).", {"screenshot": "optional bool (default true)", "imageAs": "optional str path|base64 (default path)"}, {"success": "bool", "running": "bool", "activeDocument": "str", "mainThreadBusy": "dict|null", "blockingDialogs": "list", "focusEvents": "list - the QUIETNESS AUDIT LOG (SDK canonical): every time this bridge took the user's foreground, or refused a bare foreground:true, as {at, verb, outcome: foreground|refused, reason}. Audit how quiet the bridge actually was instead of trusting that it was.", "timings": "dict - measured launch history on THIS machine (p50/p90 per phase, cold vs warm)", "screenshot": "str path", "screenshotBase64": "str (imageAs:base64 only)"}, 60, None, False, {}), ("fusion_export_iges", "Export to IGES.", {"outputPath": "required str"}, {"format": "str"}, 300, None, True, {"outputPath": "C:/out/board.iges"}), ("fusion_export_stl", "Export to STL mesh.", {"outputPath": "required str"}, {"format": "str"}, 300, None, True, {"outputPath": "C:/out/part.stl"}), ("fusion_export_3mf", "Export to 3MF mesh.", {"outputPath": "required str"}, {"format": "str"}, 300, None, True, {"outputPath": "C:/out/part.3mf"}),
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.95"+DASH_VERSION="1.9.96" 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.95",+ "version": "1.9.96", "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,16 +1,20 @@ { "slug": "fusion-bridge",- "version": "1.9.95",+ "version": "1.9.96", "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": {- "adom/adom-desktop": "*"+ "adom/adom-desktop": "^1.9.0" }, "scripts": { "install": "./install.sh", "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+39@@ -4708,6 +4708,11 @@ def _handle_fusion_state(fusion_info: dict, args: dict) -> dict: except Exception: result["addinResponding"] = False result["mainThreadBusy"] = busy+ try:+ with _FOCUS_LOCK:+ result["focusEvents"] = list(_FOCUS_EVENTS[-20:])+ except Exception:+ result["focusEvents"] = [] # WHAT TO EXPECT, BEFORE THE CLICK (issue #32 section 2): this machine's own measured # launch history, so a UI can say "typically 45s cold, 3s warm here" instead of making # the user discover it by waiting.@@ -8240,6 +8245,32 @@ def _capture_surface_shot(verb: str, args: dict) -> dict: return {"title": label, "image": _shot_b64_small(path), "path": path} ++# ── focusEvents: the quietness audit log (SDK canonicalization, page issue #34) ─────────+# Every time this bridge took the user's foreground - or refused to - it lands here, so a+# human (or a reviewer) can audit how quiet we actually were rather than trusting that we+# were. Ring buffer in memory; the point is the recent past, not forever.+_FOCUS_EVENTS = []+_FOCUS_EVENTS_MAX = 50+_FOCUS_LOCK = threading.Lock()+++def _note_focus_event(verb: str, outcome: str, reason: str = "") -> None:+ """outcome: 'foreground' (we took it, with a reason) | 'refused' (no reason given)."""+ try:+ import datetime as _dt+ with _FOCUS_LOCK:+ _FOCUS_EVENTS.append({+ "at": _dt.datetime.now().isoformat(timespec="seconds"),+ "verb": verb if verb.startswith("fusion_") else "fusion_" + verb,+ "outcome": outcome,+ "reason": (reason or "")[:200],+ })+ del _FOCUS_EVENTS[:-_FOCUS_EVENTS_MAX]+ except Exception:+ pass++ def dispatch_command(command: str, args: dict, caller_identity: dict = None) -> dict: """Thin wrapper: run the verb, then guarantee the windowEtiquette annotation lands on EVERY backgrounded window-raising result - the inner dispatcher's closure only covered@@ -8267,6 +8298,12 @@ def dispatch_command(command: str, args: dict, caller_identity: dict = None) -> pass try: cmd = command[7:] if command.startswith("fusion_") else command+ # windowEtiquette is an ENUM, not a boolean in disguise (SDK canonicalization,+ # page issue #34): a caller branches on it, so BOTH outcomes must be stated. We+ # only ever annotated the background case, which left a runner unable to tell+ # "came forward, with a reason" from "this verb does not report etiquette".+ if cmd in _WINDOW_RAISING and _fg and isinstance(res, dict):+ res.setdefault("windowEtiquette", "foreground") if cmd in _WINDOW_RAISING and not _fg and isinstance(res, dict): res.setdefault("windowEtiquette", "background") note = ("Window opened/changed in the BACKGROUND - the user's focus was NOT touched; "@@ -8327,6 +8364,7 @@ def _dispatch_command_inner(command: str, args: dict, caller_identity: dict = No # with a teaching hint - same pattern as every reason-gated Adom verb. fg_reason = str(args.get("foregroundReason") or "").strip() if not fg_reason:+ _note_focus_event(command, "refused") return {"success": False, "errorCode": "foreground_reason_required", "error": "foreground:true needs foregroundReason (a short user-facing sentence).", "_hint": ("Fusion verbs ALWAYS run in the background so the user is never "@@ -8334,6 +8372,7 @@ def _dispatch_command_inner(command: str, args: dict, caller_identity: dict = No "with foreground:true AND foregroundReason:\"<why, in words the user " "will read>\" - it is shown as an ab caption for 3 seconds before the " "window comes forward, so they can yield.")}+ _note_focus_event(command, "foreground", fg_reason) try: ad_client.notify("Fusion is coming to the foreground", fg_reason + " (Requested by your AI - Fusion verbs otherwise always "