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 166 file(s)
14 files changed
+50−39
BRIDGE_VERSION+1−1@@ -1 +1 @@-1.11.4+1.11.5
bridge.json+1−1@@ -2,7 +2,7 @@ "manifest_version": 1, "name": "fusion360", "displayName": "Autodesk Fusion 360",- "version": "1.11.4",+ "version": "1.11.5", "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.11.4"+version = "1.11.5" dependencies = [ "serde_json", ]
dashboard/Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "fusion-dashboard"-version = "1.11.4"+version = "1.11.5" 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.11.4"+DASH_VERSION="1.11.5" 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.11.4",+ "version": "1.11.5", "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−26@@ -1,6 +1,6 @@ { "slug": "fusion-bridge",- "version": "1.11.4",+ "version": "1.11.5", "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",@@ -76,6 +80,9 @@ "add a 3d model to a component", "make a fusion 360 library with 3d", "set up the fusion bridge",+ "fusion dashboard",+ "fusion status page",+ "open the fusion launch page", "aps not configured", "share aps client id across my org", "set up fusion cloud search for my company",@@ -108,28 +115,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.11.4"+version = "1.11.5" edition = "2021" license = "MIT"
rust/bridge/src/main.rs+3−1@@ -1024,7 +1024,9 @@ pub(crate) fn native_aps_search(args: &Value) -> Value { "_hint": format!("No index match for '{query}'.{}{} {}Next: fusion_aps_browse {{projectId, folderId}} on a known sibling's folder (scoped, no cloud walk), or pass projectId to add a bounded two-level walk. Do not conclude the file is missing from an index zero alone.", related_note, if nf > 0 { format!(" {nf} item(s) match by name in those folders (data.fallback, with projectId, folderId and lineage); open one with fusion_open_by_urn.") } else { " Nothing there matches the full name either.".to_string() }, folder_hint)}); }- for (_, h) in speculative { let _ = h.join(); }+ // the shortened-query searches only matter when the full query finds nothing: do not make a+ // successful search wait for them (they finish in the background and are dropped)+ drop(speculative); json!({"success": true, "output": format!("{n} match(es) for '{query}'"), "data": {"query": query, "count": n, "results": shown, "scanned": {"hubs": scanned.0, "projects": scanned.1, "folders": scanned.2}}, "shell": "rust", "_hint": format!("Found {n} match(es) via the APS server index across {} project(s), newest first. Pass projectId to scope to one project (faster). Use fusion_aps_open to open a hit in Fusion.", scanned.1)})
rust/core/src/aps.rs+30−5@@ -232,8 +232,24 @@ pub fn list_hubs(store: &ApsStore) -> Result<Vec<Value>, (u16, Value)> { pub fn list_projects(store: &ApsStore, hub_id: &str) -> Vec<Value> { match aps_get(store, &format!("/project/v1/hubs/{hub_id}/projects"), &[]) { Ok((200, b)) => data_array(&b), _ => vec![] } }+/// A project's top folders almost never change, and fetching them was a sequential round trip+/// per project before any search began (16 on Adom's hub). Cached on disk for 6 hours. pub fn top_folders(store: &ApsStore, hub_id: &str, project_id: &str) -> Vec<Value> {- match aps_get(store, &format!("/project/v1/hubs/{hub_id}/projects/{project_id}/topFolders"), &[]) { Ok((200, b)) => data_array(&b), _ => vec![] }+ let safe: String = project_id.chars().filter(|c| c.is_ascii_alphanumeric() || *c == '.' || *c == '-' || *c == '_').collect();+ let cache = store.dir.join("topfolders").join(format!("{safe}.json"));+ if let Ok(m) = std::fs::metadata(&cache) {+ if m.modified().ok().and_then(|t| t.elapsed().ok()).map(|e| e.as_secs() < 6 * 3600).unwrap_or(false) {+ if let Some(v) = std::fs::read_to_string(&cache).ok().and_then(|t| serde_json::from_str::<Vec<Value>>(&t).ok()) { if !v.is_empty() { return v; } }+ }+ }+ match aps_get(store, &format!("/project/v1/hubs/{hub_id}/projects/{project_id}/topFolders"), &[]) {+ Ok((200, b)) => {+ let v = data_array(&b);+ if !v.is_empty() { let _ = std::fs::create_dir_all(cache.parent().unwrap()); let _ = std::fs::write(&cache, serde_json::to_string(&v).unwrap_or_default()); }+ v+ }+ _ => vec![],+ } } /// Recursive name search within a folder: the folder's DIRECT contents first (`:search`@@ -288,11 +304,20 @@ pub fn scan_tasks(store: &ApsStore, hubs: &[Value], hub_filter: Option<&str>, pr let kept: Vec<Value> = projects.iter().filter(|p| p["id"].as_str() == Some(pf)).cloned().collect(); projects = if kept.is_empty() { vec![json!({"id": pf, "attributes": {"name": pf}})] } else { kept }; }- for p in projects {- let pid = p["id"].as_str().unwrap_or("").to_string();- let pname = attr(&p, "name").to_string();+ // top folders for every project IN PARALLEL (cached ones answer from disk)+ let handles: Vec<_> = projects.into_iter().map(|p| {+ let (dir, hid2) = (store.dir.clone(), hid.clone());+ std::thread::spawn(move || {+ let pid = p["id"].as_str().unwrap_or("").to_string();+ let pname = attr(&p, "name").to_string();+ let folders = top_folders(&ApsStore { dir }, &hid2, &pid);+ (pid, pname, folders)+ })+ }).collect();+ for h in handles {+ let Ok((pid, pname, folders)) = h.join() else { continue }; scanned.1 += 1;- for f in top_folders(store, &hid, &pid) {+ for f in folders { scanned.2 += 1; tasks.push(ScanTask { hub_id: hid.clone(), project_id: pid.clone(), project_name: pname.clone(), folder_id: f["id"].as_str().unwrap_or("").to_string() }); }
tools/check-naming.shtools/check-portable.shtools/promote.shtools/release.sh