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 163 file(s)
13 files changed
+39−35
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.10.20+1.10.21
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.10.20",+ "version": "1.10.21", "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.20"+version = "1.10.21" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.10.20"+version = "1.10.21" 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.20"+DASH_VERSION="1.10.21" 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.20",+ "version": "1.10.21", "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.20",+ "version": "1.10.21", "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.20"+version = "1.10.21" edition = "2021" license = "MIT"
rust/bridge/src/orchestrations.rs+21−1@@ -925,8 +925,28 @@ pub fn schematic(ctx: &Ctx, args: &Value, pass: &dyn Fn(&str, Value) -> Value) - let Some((how, r)) = opened else { return json!({"success": false, "errorCode": "schematic_source_required", "error": "Nothing names the design to open.", "_hint": menu}); }; if r["success"].as_bool() != Some(true) { let mut r = r; r["via"] = json!(how); return r; } std::thread::sleep(Duration::from_secs(2));+ // The schematic lives in the electronics DESIGN document. A name search can land on+ // the design's 3D PCB or a mechanical file (DesignProductType), which has no+ // schematic; then try the exact cloud name once, and otherwise say which documents+ // exist so the caller picks the design, instead of a bare "Please open or create".+ let mut how = how.to_string();+ let kind = |st: &Value| st["data"]["productType"].as_str().or(st["productType"].as_str()).unwrap_or("").to_string();+ let mut st = pass("get_app_state", json!({}));+ if kind(&st) == "DesignProductType" && how != "open_cloud_file" {+ if let Some(nm) = a("query").or_else(|| a("fileName")) {+ let r2 = open_cloud_file(ctx, &json!({"fileName": nm, "projectName": args["projectName"]}), pass);+ if r2["success"].as_bool() == Some(true) { how = format!("{how} landed on a 3D/mechanical document, then open_cloud_file by exact name"); std::thread::sleep(Duration::from_secs(2)); st = pass("get_app_state", json!({})); }+ }+ }+ if kind(&st) == "DesignProductType" {+ let cands = crate::native_aps_search(&json!({"query": a("query").or_else(|| a("fileName")).unwrap_or_default(), "limit": 8}));+ let names: Vec<Value> = cands["data"]["results"].as_array().cloned().unwrap_or_default().iter().map(|c| json!({"name": c["name"], "projectName": c["projectName"], "id": c["id"]})).collect();+ return json!({"success": false, "errorCode": "not_an_electronics_design", "via": how, "activeDocument": st["data"]["activeDocument"], "productType": "DesignProductType", "candidates": names,+ "error": format!("'{}' opened, but it is a 3D or mechanical document (DesignProductType), which has no schematic.", st["data"]["activeDocument"].as_str().unwrap_or("?")),+ "_hint": "Open the electronics DESIGN document (EcadDesignProductType): pick it from candidates (the design usually carries the plain name; its 3D PCB and drawings are siblings) and call fusion_schematic {action:\"open\", urn} with that lineage, or {fileName, projectName} with its exact name."});+ } let mut s = pass("show_schematic", json!({"capture": capture}));- s["opened"] = json!({"via": how, "output": r["output"], "hint": r["_hint"]}); s["via"] = json!(format!("{how} + show_schematic"));+ s["opened"] = json!({"via": how.clone(), "output": r["output"], "hint": r["_hint"]}); s["via"] = json!(format!("{how} + show_schematic")); if s["success"].as_bool() != Some(true) { s["_hint"] = json!(format!("The design opened ({how}) but the switch to its schematic view failed: {}. If the open landed on a mechanical design (DesignProductType) it has no schematic; check fusion_get_app_state and open the electronics DESIGN document instead.", s["error"].as_str().unwrap_or("unknown"))); } s }
tools/check-naming.shtools/check-portable.shtools/promote.shtools/release.sh