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 162 file(s)
14 files changed
+38−39
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.10.17+1.10.18
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.10.17",+ "version": "1.10.18", "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.10.17"+version = "1.10.18" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.10.17"+version = "1.10.18" 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.10.17"+DASH_VERSION="1.10.18" 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.10.17",+ "version": "1.10.18", "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−27@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.10.17",+ "version": "1.10.18", "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,28 +111,5 @@ "label": "Part volume", "prompt": "How much material does each printed part in this assembly use?" }- ],- "agent_permissions": {- "allow_bash": [],- "allow": [- "adom-desktop-fusion-bridge read-only verbs (via the adom-bridge CLI): fusion_readiness, fusion_get_app_state, fusion_addin_status, fusion_check_dialogs - state queries; they change nothing.",- "adom-desktop-fusion-bridge read-only verbs: fusion_alerts (reads Fusion's own log for toasts), fusion_document_info, fusion_window_info, fusion_board_info, fusion_library_parts - inspect only.",- "adom-desktop-fusion-bridge read-only verbs: fusion_prove_result (a persisted run report), fusion_plan_library_import (report-only preflight), fusion_list_cloud_projects, fusion_describe.",- "adom-desktop-fusion-bridge evidence captures fusion_screenshot_fusion and fusion_capture_library_views read pixels and write local image files only."- ],- "soft_deny": [- "adom-desktop-fusion-bridge lifecycle verbs fusion_stop, fusion_kill, fusion_restart_for_addin close or kill the Fusion application - keep the human prompt.",- "adom-desktop-fusion-bridge fusion_install_fusion silently installs Autodesk Fusion on the user's machine.",- "adom-desktop-fusion-bridge fusion_cleanup_cloud_files deletes files from the user's Autodesk cloud hub.",- "adom-desktop-fusion-bridge managed-library verbs (fusion_managed_library_push/pull/create/link/unlink) publish to or overwrite the user's library.io libraries."- ],- "environment": [- "adom-desktop-fusion-bridge is the Fusion 360 bridge for Adom Bridge; its fusion_* verbs are invoked through the adom-bridge CLI and drive Autodesk Fusion on the user's own desktop.",- "adom-desktop-fusion-bridge desktop actions also pass Adom Bridge's own human-approval gate (caller identity, per-call reason, Activity Log) - a container approval is the first of two gates."- ]- },- "author": {- "name": "John Lauer",- "email": "[email protected]"- }-}+ ]+}
rust/Cargo.toml+1−1@@ -4,7 +4,7 @@ members = ["core", "lbr", "os-win", "os-mac", "bridge"] # One version for the whole bridge, in lockstep with BRIDGE_VERSION (tools/release.sh bumps both). [workspace.package]-version = "1.10.17"+version = "1.10.18" edition = "2021" license = "MIT"
rust/bridge/src/launch.rs+13−1@@ -330,7 +330,19 @@ pub fn gate(ctx: &Ctx, cmd: &str, args: &Value) -> Option<Value> { // A modal in front of the add-in is never a reason to restart (issue #87, John: "screenshot // itself using ab ... give the ai the parent/child array of screenshots so the ai can figure // out how to expire that dialog box"). Hand the pictures over instead.- if let Some(b) = crate::lifecycle::blocked_by_dialog_reply(ctx, cmd) { return Some(b); }+ match crate::lifecycle::blocked_by_dialog_reply(ctx, cmd) {+ crate::lifecycle::DialogGate::Blocked(b) => return Some(b),+ crate::lifecycle::DialogGate::Expired(dialogs, tried) => {+ // the box is gone; give the add-in a moment to pump again, then run the verb. If it+ // still does not answer, say so and stop here: a dialog was the reason, never a+ // missing add-in, so no restart follows.+ if wait_for_addin(20) { return None; }+ return Some(json!({"success": false, "errorCode": "dialog_expired_retry", "dialogsExpired": dialogs, "expiryTried": tried,+ "error": format!("'{cmd}' was blocked by a dialog ({}); the bridge expired it programmatically, and the add-in has not resumed answering yet.", dialogs.iter().map(|d| d["title"].as_str().unwrap_or("").to_string()).collect::<Vec<_>>().join(", ")),+ "_hint": "Re-run the verb in a few seconds. Nothing was restarted and nothing will be: the add-in was blocked by that dialog, not missing."}));+ }+ crate::lifecycle::DialogGate::Clear => {}+ } let ri = crate::chainexec::addin_restart_info(ctx, &json!({"fireToast": true}), &|v, a| crate::addin::addin_http(v, &a, 8)); if ri["autoRestart"].as_bool() == Some(true) { let started = begin_auto_addin_restart(ctx);
rust/bridge/src/lifecycle.rs+7−4@@ -238,20 +238,23 @@ pub fn expire_dialogs(ctx: &Ctx, before: &[Value]) -> (Vec<Value>, Vec<Value>) { /// a dialog that survives comes back to the caller, as text and buttons read through UIA first /// and ab's parent/child screenshots second (issue #87, John: read the text, send the escape, /// pictures only when that is not enough).-pub fn blocked_by_dialog_reply(ctx: &Ctx, cmd: &str) -> Option<Value> {+/// What the dialog gate found: nothing, a dialog it expired itself, or one that survived.+pub enum DialogGate { Clear, Expired(Vec<Value>, Vec<Value>), Blocked(Value) }++pub fn blocked_by_dialog_reply(ctx: &Ctx, cmd: &str) -> DialogGate { let before = dialog_inventory(ctx); let shot0 = crate::small_verbs::screenshot_fusion(&json!({}), &ctx.caller);- if before.is_empty() && shot0["ownedPopupCount"].as_u64().unwrap_or(0) == 0 { return None; }+ if before.is_empty() && shot0["ownedPopupCount"].as_u64().unwrap_or(0) == 0 { return DialogGate::Clear; } let (tried, after) = expire_dialogs(ctx, &before); let shot = crate::small_verbs::screenshot_fusion(&json!({}), &ctx.caller); let popups = shot["ownedPopupCount"].as_u64().unwrap_or(0); crate::fusion_prefs::action_ledger(&ctx.state_dir, "blocked_by_dialog", json!({"forCommand": cmd, "before": before.iter().map(|d| d["title"].clone()).collect::<Vec<_>>(), "tried": tried, "after": after.iter().map(|d| d["title"].clone()).collect::<Vec<_>>(), "ownedPopups": popups})); if after.is_empty() && popups == 0 { eprintln!("[fusion-bridge] {cmd}: expired {} dialog(s) programmatically before running", before.len());- return None;+ return DialogGate::Expired(before, tried); } let titles = after.iter().map(|d| format!("'{}' ({})", d["title"].as_str().unwrap_or(""), d["category"].as_str().unwrap_or("unknown"))).collect::<Vec<_>>().join(", ");- Some(json!({"success": false, "errorCode": "blocked_by_dialog", "hostResponding": true, "dialogs": after, "expiryTried": tried,+ DialogGate::Blocked(json!({"success": false, "errorCode": "blocked_by_dialog", "hostResponding": true, "dialogs": after, "expiryTried": tried, "screenshots": {"mainWindow": shot["savedTo"], "ownedPopupCount": popups, "windows": shot["screenshots"]}, "error": format!("'{cmd}' cannot run: a dialog is in front of Fusion ({}) and the bridge's safe expiry (rules, then WM_CLOSE) did not clear it. The bridge does not restart Fusion over a dialog.", if titles.is_empty() { format!("{popups} owned popup window(s) with no readable controls") } else { titles }), "_hint": "dialogs[] carries each box read through UIA: its text and its button names, plus the bridge's resolution when a rule matched. Answer it by name: desktop_ui_click {hwnd, name:\"<button>\"} for the button that does what you want (never a Save/Yes on a scratch document you do not own), or desktop_close_window {hwnd} to cancel. screenshots.windows is ab's parent/child array for when the text is not enough. Then re-run the verb; never restart Fusion for this."}))
tools/check-naming.shtools/check-portable.shtools/promote.shtools/release.sh