Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(ios): add iOS 27 support (#6603)
Sean Ayee5bf7a78d3d3
diff --git a/apps/web/tauri/Cargo.lock b/apps/web/tauri/Cargo.lockindex 22c2e59e79..929d46355d 100644--- a/apps/web/tauri/Cargo.lock+++ b/apps/web/tauri/Cargo.lock@@ -854,12 +854,13 @@ dependencies = [[[package]]name = "cargo_toml"-version = "0.22.3"+version = "1.0.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"+checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"dependencies = [+ "semver","serde",- "toml 0.9.12+spec-1.1.0",+ "toml 1.1.2+spec-1.1.0",][[package]]@@ -882,13 +883,13 @@ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"[[package]]name = "cfb"-version = "0.7.3"+version = "0.14.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"dependencies = [- "byteorder","fnv","uuid",+ "web-time",][[package]]@@ -1255,7 +1256,7 @@ version = "0.29.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa"dependencies = [- "cssparser-macros",+ "cssparser-macros 0.6.1","dtoa-short","itoa","matches",@@ -1268,11 +1269,11 @@ dependencies = [[[package]]name = "cssparser"-version = "0.36.0"+version = "0.37.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"dependencies = [- "cssparser-macros",+ "cssparser-macros 0.7.1","dtoa-short","itoa","phf 0.13.1",@@ -1290,20 +1291,20 @@ dependencies = [][[package]]-name = "ctor"-version = "0.8.0"+name = "cssparser-macros"+version = "0.7.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"dependencies = [- "ctor-proc-macro",- "dtor",+ "quote",+ "syn 3.0.3",][[package]]-name = "ctor-proc-macro"-version = "0.0.7"+name = "ctor"+version = "1.0.13"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"[[package]]name = "ctr"@@ -1535,6 +1536,15 @@ dependencies = ["dirs-sys",]+[[package]]+name = "dirs"+version = "7.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"+dependencies = [+ "dirs-sys",+]+[[package]]name = "dirs-sys"version = "0.5.0"@@ -1544,7 +1554,7 @@ dependencies = ["libc","option-ext","redox_users",- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -1633,16 +1643,16 @@ dependencies = [[[package]]name = "dom_query"-version = "0.27.0"+version = "0.28.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"dependencies = ["bit-set",- "cssparser 0.36.0",+ "cssparser 0.37.0","foldhash 0.2.0",- "html5ever 0.38.0",+ "html5ever 0.39.0","precomputed-hash",- "selectors 0.36.1",+ "selectors 0.38.0","tendril 0.5.0",]@@ -1709,21 +1719,6 @@ dependencies = ["dtoa",]-[[package]]-name = "dtor"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"-dependencies = [- "dtor-proc-macro",-]--[[package]]-name = "dtor-proc-macro"-version = "0.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"-[[package]]name = "dunce"version = "1.0.5"@@ -1844,7 +1839,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -2240,7 +2235,7 @@ dependencies = ["libc","log","rustversion",- "windows-link 0.2.1",+ "windows-link 0.1.3","windows-result 0.3.4",]@@ -2653,12 +2648,12 @@ dependencies = [[[package]]name = "html5ever"-version = "0.38.0"+version = "0.39.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"dependencies = ["log",- "markup5ever 0.38.0",+ "markup5ever 0.39.0",][[package]]@@ -3014,9 +3009,9 @@ dependencies = [[[package]]name = "infer"-version = "0.19.0"+version = "0.22.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"dependencies = ["cfb",]@@ -3072,7 +3067,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"dependencies = ["hermit-abi","libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -3213,14 +3208,14 @@ dependencies = [[[package]]name = "json-patch"-version = "3.0.1"+version = "4.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"dependencies = ["jsonptr","serde","serde_json",- "thiserror 1.0.69",+ "thiserror 2.0.18",][[package]]@@ -3238,9 +3233,9 @@ dependencies = [[[package]]name = "jsonptr"-version = "0.6.3"+version = "0.7.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70"+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"dependencies = ["serde","serde_json",@@ -3559,9 +3554,9 @@ dependencies = [[[package]]name = "markup5ever"-version = "0.38.0"+version = "0.39.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"dependencies = ["log","tendril 0.5.0",@@ -3690,9 +3685,9 @@ dependencies = [[[package]]name = "muda"-version = "0.17.2"+version = "0.19.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177"+checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878"dependencies = ["crossbeam-channel","dpi",@@ -3703,7 +3698,7 @@ dependencies = ["objc2-core-foundation","objc2-foundation","once_cell",- "png 0.17.16",+ "png 0.18.1","serde","thiserror 2.0.18","windows-sys 0.60.2",@@ -3927,7 +3922,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -4450,7 +4445,6 @@ version = "0.11.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"dependencies = [- "phf_macros 0.11.3","phf_shared 0.11.3",]@@ -4549,19 +4543,6 @@ dependencies = ["syn 1.0.109",]-[[package]]-name = "phf_macros"-version = "0.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"-dependencies = [- "phf_generator 0.11.3",- "phf_shared 0.11.3",- "proc-macro2",- "quote",- "syn 2.0.117",-]-[[package]]name = "phf_macros"version = "0.13.1"@@ -5438,7 +5419,7 @@ dependencies = ["errno","libc","linux-raw-sys",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -5495,7 +5476,7 @@ dependencies = ["security-framework","security-framework-sys","webpki-root-certs",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -5658,12 +5639,12 @@ dependencies = [[[package]]name = "selectors"-version = "0.36.1"+version = "0.38.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"dependencies = ["bitflags 2.11.1",- "cssparser 0.36.0",+ "cssparser 0.37.0","derive_more 2.1.1","log","new_debug_unreachable",@@ -6004,7 +5985,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -6060,7 +6041,6 @@ dependencies = ["chrono","document_sub_type","item-filter-index",- "model_file_type","postcard","predicate-index","serde",@@ -6219,9 +6199,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"[[package]]name = "swift-rs"-version = "1.0.7"+version = "1.0.8"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"+checksum = "e45c444e496845d3f2a351146bff59aae4975b2280238df1dfaa0c7d1846f38e"dependencies = ["base64 0.21.7","serde",@@ -6360,9 +6340,8 @@ dependencies = [[[package]]name = "tao"-version = "0.35.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1cf65722394c2ac443e80120064987f8914ee1d4e4e36e63cdf10f2990f01159"+version = "0.37.0"+source = "git+https://github.com/macro-inc/tao?rev=6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8#6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8"dependencies = ["bitflags 2.11.1","block2",@@ -6380,6 +6359,7 @@ dependencies = ["libc","log","ndk",+ "ndk-context","ndk-sys","objc2 0.6.4","objc2-app-kit",@@ -6389,20 +6369,30 @@ dependencies = ["parking_lot","percent-encoding","raw-window-handle",- "tao-macros",+ "tao-macros 0.1.4 (git+https://github.com/macro-inc/tao?rev=6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8)","unicode-segmentation","url",- "windows 0.61.3",- "windows-core 0.61.2",+ "windows 0.62.2",+ "windows-core 0.62.2","windows-version","x11-dl",][[package]]name = "tao-macros"-version = "0.1.3"+version = "0.1.4"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"+checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "tao-macros"+version = "0.1.4"+source = "git+https://github.com/macro-inc/tao?rev=6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8#6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8"dependencies = ["proc-macro2","quote",@@ -6423,13 +6413,13 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"[[package]]name = "tauri"-version = "2.10.3"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.11.5"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["anyhow","bytes","cookie",- "dirs",+ "dirs 7.0.0","dunce","embed_plist","getrandom 0.3.4",@@ -6469,17 +6459,17 @@ dependencies = ["webkit2gtk","webview2-com","window-vibrancy",- "windows 0.61.3",+ "windows 0.62.2",][[package]]name = "tauri-build"-version = "2.5.6"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.6.3"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["anyhow","cargo_toml",- "dirs",+ "dirs 7.0.0","glob","heck 0.5.0","json-patch",@@ -6494,15 +6484,15 @@ dependencies = [[[package]]name = "tauri-codegen"-version = "2.5.5"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.6.3"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["base64 0.22.1","brotli","ico","json-patch","plist",- "png 0.17.16",+ "png 0.18.1","proc-macro2","quote","semver",@@ -6520,8 +6510,8 @@ dependencies = [[[package]]name = "tauri-macros"-version = "2.5.5"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.6.3"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["heck 0.5.0","proc-macro2",@@ -6675,7 +6665,7 @@ dependencies = ["thiserror 2.0.18","tokio","url",- "urlpattern",+ "urlpattern 0.3.0",][[package]]@@ -6867,8 +6857,8 @@ dependencies = [[[package]]name = "tauri-runtime"-version = "2.10.1"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.11.3"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["cookie","dpi",@@ -6886,13 +6876,13 @@ dependencies = ["url","webkit2gtk","webview2-com",- "windows 0.61.3",+ "windows 0.62.2",][[package]]name = "tauri-runtime-wry"-version = "2.10.1"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.11.4"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["gtk","http",@@ -6910,14 +6900,14 @@ dependencies = ["url","webkit2gtk","webview2-com",- "windows 0.61.3",+ "windows 0.62.2","wry",][[package]]name = "tauri-utils"-version = "2.8.3"-source = "git+https://github.com/seanaye/tauri?rev=95a7521b#95a7521b8c565cfba568319ddd8ba79c9ce244e2"+version = "2.9.3"+source = "git+https://github.com/macro-inc/tauri?rev=957785f5#957785f52fa5c79c53db520eb9d6f2477666752b"dependencies = ["anyhow","brotli",@@ -6933,7 +6923,7 @@ dependencies = ["kuchikiki","log","memchr",- "phf 0.11.3",+ "phf 0.13.1","plist","proc-macro2","quote",@@ -6946,9 +6936,9 @@ dependencies = ["serde_with","swift-rs","thiserror 2.0.18",- "toml 1.1.2+spec-1.1.0",+ "toml 0.9.12+spec-1.1.0","url",- "urlpattern",+ "urlpattern 0.6.0","uuid","walkdir",]@@ -6986,7 +6976,7 @@ dependencies = ["getrandom 0.4.2","once_cell","rustix",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -7440,12 +7430,12 @@ dependencies = [[[package]]name = "tray-icon"-version = "0.22.1"+version = "0.24.2"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f9eb1da86bd0ab8931fad00650d2ba7473260c5bab06d6f24d04339edb88faa"+checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e"dependencies = ["crossbeam-channel",- "dirs",+ "dirs 6.0.0","libappindicator","muda","objc2 0.6.4",@@ -7651,7 +7641,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"dependencies = ["memoffset","tempfile",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -7808,6 +7798,18 @@ dependencies = ["url",]+[[package]]+name = "urlpattern"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"+dependencies = [+ "icu_properties",+ "regex",+ "serde",+ "url",+]+[[package]]name = "utf-8"version = "0.7.6"@@ -8146,16 +8148,14 @@ dependencies = [[[package]]name = "webview2-com"-version = "0.38.2"+version = "0.39.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"+checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6"dependencies = ["webview2-com-macros","webview2-com-sys",- "windows 0.61.3",- "windows-core 0.61.2",- "windows-implement 0.60.2",- "windows-interface 0.59.3",+ "windows 0.62.2",+ "windows-core 0.62.2",][[package]]@@ -8171,13 +8171,13 @@ dependencies = [[[package]]name = "webview2-com-sys"-version = "0.38.2"+version = "0.39.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"+checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb"dependencies = ["thiserror 2.0.18",- "windows 0.61.3",- "windows-core 0.61.2",+ "windows 0.62.2",+ "windows-core 0.62.2",][[package]]@@ -8202,7 +8202,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -8261,11 +8261,23 @@ version = "0.61.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"dependencies = [- "windows-collections",+ "windows-collections 0.2.0","windows-core 0.61.2",- "windows-future",+ "windows-future 0.2.1","windows-link 0.1.3",- "windows-numerics",+ "windows-numerics 0.2.0",+]++[[package]]+name = "windows"+version = "0.62.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"+dependencies = [+ "windows-collections 0.3.2",+ "windows-core 0.62.2",+ "windows-future 0.3.2",+ "windows-numerics 0.3.1",][[package]]@@ -8277,6 +8289,15 @@ dependencies = ["windows-core 0.61.2",]+[[package]]+name = "windows-collections"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"+dependencies = [+ "windows-core 0.62.2",+]+[[package]]name = "windows-core"version = "0.57.0"@@ -8315,6 +8336,19 @@ dependencies = ["windows-strings 0.4.2",]+[[package]]+name = "windows-core"+version = "0.62.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"+dependencies = [+ "windows-implement 0.60.2",+ "windows-interface 0.59.3",+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]+[[package]]name = "windows-future"version = "0.2.1"@@ -8323,7 +8357,18 @@ checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = ["windows-core 0.61.2","windows-link 0.1.3",- "windows-threading",+ "windows-threading 0.1.0",+]++[[package]]+name = "windows-future"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"+dependencies = [+ "windows-core 0.62.2",+ "windows-link 0.2.1",+ "windows-threading 0.2.1",][[package]]@@ -8414,6 +8459,16 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-numerics"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"+dependencies = [+ "windows-core 0.62.2",+ "windows-link 0.2.1",+]+[[package]]name = "windows-registry"version = "0.5.3"@@ -8452,6 +8507,15 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-result"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"+dependencies = [+ "windows-link 0.2.1",+]+[[package]]name = "windows-strings"version = "0.1.0"@@ -8471,6 +8535,15 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-strings"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"+dependencies = [+ "windows-link 0.2.1",+]+[[package]]name = "windows-sys"version = "0.45.0"@@ -8588,6 +8661,15 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-threading"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"+dependencies = [+ "windows-link 0.2.1",+]+[[package]]name = "windows-version"version = "0.1.7"@@ -8937,15 +9019,15 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"[[package]]name = "wry"-version = "0.55.0"+version = "0.57.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3013fd6116aac351dd2e18f349b28b2cfef3a5ff3253a9d0ce2d7193bb1b4429"+checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"dependencies = ["base64 0.22.1","block2","cookie","crossbeam-channel",- "dirs",+ "dirs 7.0.0","dom_query","dpi","dunce",@@ -8967,14 +9049,14 @@ dependencies = ["raw-window-handle","sha2","soup3",- "tao-macros",+ "tao-macros 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)","thiserror 2.0.18","url","webkit2gtk","webkit2gtk-sys","webview2-com",- "windows 0.61.3",- "windows-core 0.61.2",+ "windows 0.62.2",+ "windows-core 0.62.2","windows-version","x11-dl",]diff --git a/apps/web/tauri/Cargo.toml b/apps/web/tauri/Cargo.tomlindex 1be3381205..129a1b5e89 100644--- a/apps/web/tauri/Cargo.toml+++ b/apps/web/tauri/Cargo.toml@@ -22,17 +22,19 @@ reqwest = "0.13"rootcause = "0.12"semver = "1"serde = "1"-tauri = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }+tauri = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }thiserror = "2"tokio = "1"tracing = "0.1"url = "2.5.4"[patch.crates-io]-tauri = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-runtime = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-runtime-wry = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-utils = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-macros = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-codegen = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }-tauri-build = { git = "https://github.com/seanaye/tauri", rev = "95a7521b" }+# Backport tao#1257 plus nullable launch-option accessors; see the fork's FORK.md.+tao = { git = "https://github.com/macro-inc/tao", rev = "6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8" }+tauri = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-runtime = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-runtime-wry = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-utils = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-macros = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-codegen = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }+tauri-build = { git = "https://github.com/macro-inc/tauri", rev = "957785f5" }diff --git a/apps/web/tauri/src-tauri/Info.ios.plist b/apps/web/tauri/src-tauri/Info.ios.plistindex c044c8cdd2..6dcd8080cd 100644--- a/apps/web/tauri/src-tauri/Info.ios.plist+++ b/apps/web/tauri/src-tauri/Info.ios.plist@@ -2,6 +2,22 @@<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>+ <!-- Adopt the scene lifecycle without enabling additional iPad windows. -->+ <key>UIApplicationSceneManifest</key>+ <dict>+ <key>UIApplicationSupportsMultipleScenes</key>+ <false/>+ <key>UISceneConfigurations</key>+ <dict>+ <key>UIWindowSceneSessionRoleApplication</key>+ <array>+ <dict>+ <key>UISceneConfigurationName</key>+ <string>TaoScene</string>+ </dict>+ </array>+ </dict>+ </dict><key>UIBackgroundModes</key><array><string>audio</string>diff --git a/apps/web/tauri/src-tauri/README.md b/apps/web/tauri/src-tauri/README.mdindex 1e5f414e46..5f7ebf1321 100644--- a/apps/web/tauri/src-tauri/README.md+++ b/apps/web/tauri/src-tauri/README.md@@ -24,6 +24,55 @@ single `vite.config.ts`.You can override the dev server host for devices/emulators by exporting`TAURI_DEV_HOST` before running `cargo tauri …`.+## iOS 27 scene lifecycle++Apps built with the iOS 27 SDK must use the scene lifecycle. Keep the+`UIApplicationSceneManifest` in `Info.ios.plist`,+`gen/apple/app_iOS/Info.plist`, and `gen/apple/project.yml` in sync:++- The fork at `957785f5` uses Tao 0.37, which enables the scene lifecycle from+ the manifest independently of multi-window support. Keep+ `UIApplicationSupportsMultipleScenes` false to retain Macro's single-window+ behavior on both iPhone and iPad.+- Declare `TaoScene` under+ `UISceneConfigurations.UIWindowSceneSessionRoleApplication`.+- Tao registers the delegate dynamically; do not add a separate Swift delegate.+- Mobile foreground handling uses `RunEvent::WindowEvent` containing+ `WindowEvent::Resumed`, not top-level `RunEvent::Resumed` or `Focused(true)`.+ This preserves bundle-update retries on resume without triggering them for+ ordinary focus changes. The event variant and handler are gated to mobile.++The Tao patch in `../Cargo.toml` pins `macro-inc/tao` at `6cbc7628`. It backports+[tao#1257](https://github.com/tauri-apps/tao/pull/1257), including the review's+nullable-accessor fix: cold-start URL contexts and browsing-web activities+are forwarded through the same `Opened` event path as warm links. Nil launch+options are treated as an ordinary launch, not a panic. Macro's existing+frontend-ready buffer handles early delivery; no extra navigation path is needed.++Normal startup and cold/warm custom-scheme links were exercised on iOS 27;+logs showed one event per tested link. Universal-link extraction/filtering is+covered by simulator-executed Tao tests. Signed associated-domain delivery,+physical devices, iOS 26, and share-sheet flows still need end-to-end testing.+See the fork's [FORK.md](https://github.com/macro-inc/tao/blob/6cbc7628f91db2c5ce588719bf8ba6f2dd6fc1c8/FORK.md)+for provenance and verification. Remove the patch once a compatible Tao release+includes both the cold-start fix and nil handling.++The app and both extensions now require **iOS 15 or later**, matching Xcode+27's minimum supported deployment target. This drops iOS 14 support. The Tauri+configuration, XcodeGen source, and generated debug/release build settings all+use 15.0; no command-line deployment-target override is needed.++The resolved `swift-rs` 1.0.8 supports Xcode 27's SwiftPM; the previous+`--build-system native` workaround is no longer needed. Tauri CLI 2.11.4 still+mistakes simulators returned by `devicectl` for physical devices. Use+`cargo tauri ios dev --open` and build the simulator destination with Xcode.+Use Xcode's tools rather than Nix's Apple SDK/linker for native builds.++Checked-in configuration tests and the normal/cold/warm/resume simulator smoke+runner are documented in [iOS verification](../../tests/native/ios/README.md).+That guide also records the remaining release checks and a separate legacy+document-rendering finding; passing the smoke test is not full iOS 26/27 parity.+## Building bundles```shdiff --git a/apps/web/tauri/src-tauri/gen/apple/app.xcodeproj/project.pbxproj b/apps/web/tauri/src-tauri/gen/apple/app.xcodeproj/project.pbxprojindex 878f7c0c96..3770349cf6 100644--- a/apps/web/tauri/src-tauri/gen/apple/app.xcodeproj/project.pbxproj+++ b/apps/web/tauri/src-tauri/gen/apple/app.xcodeproj/project.pbxproj@@ -588,7 +588,7 @@GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;GCC_WARN_UNUSED_FUNCTION = YES;GCC_WARN_UNUSED_VARIABLE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 14.0;+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;MTL_ENABLE_DEBUG_INFO = NO;MTL_FAST_MATH = YES;PRODUCT_NAME = "$(TARGET_NAME)";@@ -734,7 +734,7 @@GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;GCC_WARN_UNUSED_FUNCTION = YES;GCC_WARN_UNUSED_VARIABLE = YES;- IPHONEOS_DEPLOYMENT_TARGET = 14.0;+ IPHONEOS_DEPLOYMENT_TARGET = 15.0;MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;MTL_FAST_MATH = YES;ONLY_ACTIVE_ARCH = YES;diff --git a/apps/web/tauri/src-tauri/gen/apple/app_iOS/Info.plist b/apps/web/tauri/src-tauri/gen/apple/app_iOS/Info.plistindex 64a90f6583..af6cdb573f 100644--- a/apps/web/tauri/src-tauri/gen/apple/app_iOS/Info.plist+++ b/apps/web/tauri/src-tauri/gen/apple/app_iOS/Info.plist@@ -46,6 +46,21 @@<string>INSendMessageIntent</string><string>NSUserActivityTypeBrowsingWeb</string></array>+ <key>UIApplicationSceneManifest</key>+ <dict>+ <key>UIApplicationSupportsMultipleScenes</key>+ <false/>+ <key>UISceneConfigurations</key>+ <dict>+ <key>UIWindowSceneSessionRoleApplication</key>+ <array>+ <dict>+ <key>UISceneConfigurationName</key>+ <string>TaoScene</string>+ </dict>+ </array>+ </dict>+ </dict><key>UIBackgroundModes</key><array><string>audio</string>diff --git a/apps/web/tauri/src-tauri/gen/apple/project.yml b/apps/web/tauri/src-tauri/gen/apple/project.ymlindex 69c573b899..220f940603 100644--- a/apps/web/tauri/src-tauri/gen/apple/project.yml+++ b/apps/web/tauri/src-tauri/gen/apple/project.yml@@ -2,7 +2,7 @@ name: appoptions:bundleIdPrefix: com.macro.app.proddeploymentTarget:- iOS: 14.0+ iOS: 15.0packages:CallKitPlugin:path: ../../../callkit_plugin/ios@@ -72,6 +72,11 @@ targets:NSPhotoLibraryUsageDescription: "This app needs access to your photo library to upload attachments."LSApplicationQueriesSchemes:- macro+ UIApplicationSceneManifest:+ UIApplicationSupportsMultipleScenes: false+ UISceneConfigurations:+ UIWindowSceneSessionRoleApplication:+ - UISceneConfigurationName: TaoSceneUIBackgroundModes:- audio- voipdiff --git a/apps/web/tauri/src-tauri/src/lib.rs b/apps/web/tauri/src-tauri/src/lib.rsindex 7ae9a2bd09..1803e6f8e6 100644--- a/apps/web/tauri/src-tauri/src/lib.rs+++ b/apps/web/tauri/src-tauri/src/lib.rs@@ -3,11 +3,12 @@ use logger::Logger;use macro_bundle_updater_plugin::domain::{asset_service::BundleAssetResolver, bundle_routes::BundleRoutes,};-use macro_bundle_updater_plugin::inbound::plugin::retry_waiting_for_wifi;#[cfg(feature = "auto_apply_update")]-use macro_bundle_updater_plugin::inbound::plugin::{- allow_update_reload_retry, apply_completed_update_from, start_update_check,-};+use macro_bundle_updater_plugin::inbound::plugin::apply_completed_update_from;+#[cfg(mobile)]+use macro_bundle_updater_plugin::inbound::plugin::retry_waiting_for_wifi;+#[cfg(all(mobile, feature = "auto_apply_update"))]+use macro_bundle_updater_plugin::inbound::plugin::{allow_update_reload_retry, start_update_check};use macro_bundle_updater_plugin::outbound::fs::FileSystem;use navigation_plugin::scheme::MacroScheme;use navigation_plugin::{MacroNavigationPlugin, NavigatePayload};@@ -318,7 +319,15 @@ pub fn run() {});}}- RunEvent::Resumed => {+ // Tao 0.37 delivers mobile foreground transitions per window, not+ // through the top-level event-loop Resumed event or focus changes.+ #[cfg(mobile)]+ RunEvent::WindowEvent {+ label,+ event: tauri::WindowEvent::Resumed,+ ..+ } => {+ tracing::debug!(window_label = %label, "mobile window resumed");let app = app_handle.clone();tauri::async_runtime::spawn(async move {if let Err(e) = retry_waiting_for_wifi(&app).await {diff --git a/apps/web/tauri/src-tauri/tauri.conf.json b/apps/web/tauri/src-tauri/tauri.conf.jsonindex 659181dd52..30c098e9c3 100644--- a/apps/web/tauri/src-tauri/tauri.conf.json+++ b/apps/web/tauri/src-tauri/tauri.conf.json@@ -52,7 +52,7 @@"icons/icon.ico"],"iOS": {- "minimumSystemVersion": "14.0"+ "minimumSystemVersion": "15.0"}},"plugins": {diff --git a/apps/web/tests/native/README.md b/apps/web/tests/native/README.mdindex f1cfe389b8..53b006aa6e 100644--- a/apps/web/tests/native/README.md+++ b/apps/web/tests/native/README.md@@ -1,5 +1,8 @@# Native offline E2E (Linux)+For Apple scene lifecycle and deep-link coverage, see the+[iOS simulator smoke tests](ios/README.md).+Automates the **real desktop Tauri application** using WebdriverIO →`tauri-driver` → WebKitWebDriver. No Chromium, mock IPC, WASM cache substitute,or production test hooks.diff --git a/apps/web/tests/native/ios/README.md b/apps/web/tests/native/ios/README.mdnew file mode 100644index 0000000000..7be48b5915--- /dev/null+++ b/apps/web/tests/native/ios/README.md@@ -0,0 +1,103 @@+# iOS lifecycle and deep-link smoke tests++These tests cover the single-window scene manifest and the pinned Tao+cold-start URL fix. They complement, rather than replace, native touch/editor+and release testing.++## Portable configuration and assertion tests++From the repository root, with Python 3.11+ (stdlib only):++```sh+python3 -m unittest discover -s apps/web/tests/native/ios -p 'test_*.py' -v+```++Checks the source/generated scene manifests, XcodeGen declaration, iOS 15+minimum in Tauri/XcodeGen/Xcode, fork ownership/revision consistency, and the+smoke runner's duplicate/missing-event and resume assertions. No Xcode, account,+network, or simulator is needed for these checks. They also cover PID reuse,+including two process incarnations born within the same second.++## Live simulator smoke++Prerequisites:++- macOS, Xcode 27, and a **booted** iOS 27 simulator.+- An installed Macro **debug** app from this checkout, built with+ `--no-default-features` to disable automatic bundle updates. Keep its Vite+ server running. Use `just ios-dev` from `apps/web` to open Xcode and build/run+ the simulator destination. The app and both extensions require iOS 15+.+- The debug logs must include Tao's `emitting Opened` and Macro's+ `mobile window resumed` messages (the debug app's default log filter does).+ Missing logs fail the test; do not treat an instrumentation failure as a pass.++Save any drafts first: the test **terminates and relaunches Macro**. It does+not install/reinstall apps, boot/erase simulators, clear data, sign out, grant+permissions, send messages, or edit documents. Existing sessions are retained.+It briefly activates Safari to exercise background/foreground transitions.++```sh+export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer+/usr/bin/xcrun simctl list devices booted+python3 apps/web/tests/native/ios/smoke.py \+ --device <simulator-udid> --allow-restart+```++Use `--settle-seconds 20` on slower machines. The runner creates a private+(mode 0700) temporary evidence directory and prints its path. Screenshots can+contain real account data: keep them local and do not commit/upload them.++Each launch records its PID and Darwin process start time (microsecond precision).+Checkpoints recheck that identity before and after collecting evidence, reject+exiting/zombie processes, and restrict logs to that process's start time. This+prevents an older process with a reused PID from satisfying event counts.+The identity is included in `results.json`. The small Darwin helper runs under+isolated Xcode Python to avoid mixing Nix's Python/libffi with the system libraries;+it needs no extra packages.++Automated checks:++| Checkpoint | Expected events |+| --- | --- |+| Normal launch, no URL | Zero `Opened` events; process remains alive |+| Cold `macro://app/login` | Exactly one scene-connection `Opened`, with one URL |+| Warm `macro://app/welcome` | Same process; exactly one additional URL-context event |+| Background to Safari, return | Same process; exactly one additional resume event; no extra link events |+| Terminate and launch without URL | Zero link events in the new process; no stale link replay |++**Review the screenshots too.** Event counts do not prove frontend navigation+or rendering. Signed-out expectations are welcome → login → welcome; a later+ordinary launch must show welcome again. Signed-in runs should retain auth and+follow the app's authenticated redirects, never require signing in again or+replay the prior link. Do not force the signed-out screenshot expectations on+a signed-in account. Review `results.json` and the per-checkpoint logs alongside+the screenshots. A failed checkpoint still saves the collected evidence.++The runner verifies custom-scheme delivery using `devicectl --payload-url`, not+Apple's associated-domain routing. It intentionally avoids authenticated writes.+For iPad, dismiss the existing `Optimized for iPhone` notice manually if it+obscures screenshots; do not interpret it as a scene-lifecycle error.++## Release checks still required++- iOS 26 and physical iPhone/iPad regressions; iOS 27 simulator coverage alone+ does not establish parity with iOS 26.+- Android foreground/resume behavior after the Tao/Tauri upgrade.+- Signed HTTPS universal links from Safari/Mail, cold and warm. Simulator Tao+ unit tests cover `NSUserActivity` extraction/filtering, not domain association.+- Share-sheet/file import, notification taps, calls, and OAuth return flows.+- Default-feature production/OTA behavior, including pending-update application+ and retry on resume. The debug smoke build disables automatic updates.+- Editing, software-keyboard geometry, selections, and composer behavior. Read-only+ UI checks exercised dock taps, search entry/reset, document navigation/resume,+ and PDF rendering/scrolling, but did not edit or send user content.++## Separate finding: legacy document displays JSON++The existing onboarding document titled `Why use Macro?` displayed serialized+Lexical JSON as body text during read-only testing. Navigation remained responsive;+a second document was empty and therefore was not a rich-text rendering control.+This has **not** been attributed to this PR or to iOS/Tao. Investigate stored+content/migration and compare the same document on web/iOS 26 before changing+rendering or rewriting any document. Keep that investigation separate from the+scene lifecycle and cold-start fix.diff --git a/apps/web/tests/native/ios/process_identity.py b/apps/web/tests/native/ios/process_identity.pynew file mode 100644index 0000000000..b9c21c1e5a--- /dev/null+++ b/apps/web/tests/native/ios/process_identity.py@@ -0,0 +1,46 @@+"""Darwin process birth timestamp; invoked using isolated Xcode Python by smoke.py."""++import ctypes+from datetime import datetime, timedelta, timezone+import os+import sys+++class ProcBSDInfo(ctypes.Structure):+ # Darwin sys/proc_info.h, PROC_PIDTBSDINFO. `ps lstart` loses microseconds.+ _fields_ = [+ (name, ctypes.c_uint32) for name in (+ "flags", "status", "xstatus", "pid", "ppid", "uid", "gid",+ "ruid", "rgid", "svuid", "svgid", "reserved",+ )+ ] + [+ ("comm", ctypes.c_char * 16), ("name", ctypes.c_char * 32),+ ("nfiles", ctypes.c_uint32), ("pgid", ctypes.c_uint32),+ ("jobc", ctypes.c_uint32), ("tdev", ctypes.c_uint32),+ ("tpgid", ctypes.c_uint32), ("nice", ctypes.c_int32),+ ("start_seconds", ctypes.c_uint64), ("start_microseconds", ctypes.c_uint64),+ ]+++def start_time(pid):+ libproc = ctypes.CDLL("/usr/lib/libproc.dylib", use_errno=True)+ query = libproc.proc_pidinfo+ query.argtypes = [ctypes.c_int, ctypes.c_int, ctypes.c_uint64, ctypes.c_void_p, ctypes.c_int]+ query.restype = ctypes.c_int+ info = ProcBSDInfo()+ size = query(pid, 3, 0, ctypes.byref(info), ctypes.sizeof(info))+ if size != ctypes.sizeof(info):+ error = ctypes.get_errno()+ raise OSError(error, f"Cannot read process identity for PID {pid}: {os.strerror(error)}")+ # SZOMB and PROC_FLAG_INEXIT, respectively. Signal 0 accepts zombies.+ if info.status == 5 or info.flags & 4:+ raise ProcessLookupError(f"Macro PID {pid} is exiting or a zombie")+ if info.pid != pid or (info.name or info.comm) != b"macro":+ raise AssertionError(f"PID {pid} no longer belongs to Macro")+ return datetime.fromtimestamp(info.start_seconds, timezone.utc) + timedelta(+ microseconds=info.start_microseconds+ )+++if __name__ == "__main__":+ print(start_time(int(sys.argv[1])).isoformat())diff --git a/apps/web/tests/native/ios/smoke.py b/apps/web/tests/native/ios/smoke.pynew file mode 100644index 0000000000..756166f5e3--- /dev/null+++ b/apps/web/tests/native/ios/smoke.py@@ -0,0 +1,202 @@+#!/usr/bin/env python3+"""Read-only lifecycle/link smoke test for an installed Macro debug simulator app."""++import argparse+from dataclasses import dataclass+from datetime import datetime, timezone+import json+from pathlib import Path+import plistlib+import re+import subprocess+import sys+import tempfile+import time+import uuid++APP = "com.macro.app.prod"+COLD_SOURCE = "scene:willConnectToSession:options:"+WARM_SOURCE = "scene:openURLContexts:"+++@dataclass(frozen=True)+class ProcessIdentity:+ pid: int+ started_at: datetime+++def process_identity(pid):+ # Use isolated Xcode Python for Darwin's libproc: Nix's ctypes/libffi can+ # abort on macOS 27, and PYTHONPATH must not mix the two installations.+ # The main runner and portable tests do not import platform-specific ctypes.+ result = subprocess.run(+ ["/usr/bin/python3", "-I", str(Path(__file__).with_name("process_identity.py")), str(pid)],+ capture_output=True, text=True, check=True, timeout=10,+ )+ return ProcessIdentity(pid, datetime.fromisoformat(result.stdout.strip()))+++def check_process(process):+ if process_identity(process.pid) != process:+ raise AssertionError(f"Macro PID {process.pid} was reused by another process incarnation")+++def log_predicate(process):+ # NSPredicate's NSDate numeric epoch is 2001-01-01, not Unix's 1970 epoch.+ since = (process.started_at - datetime(2001, 1, 1, tzinfo=timezone.utc)).total_seconds()+ return (+ f'processIdentifier == {process.pid} AND date >= CAST({since:.6f}, "NSDate") AND '+ '(eventMessage CONTAINS "emitting Opened" OR '+ 'eventMessage CONTAINS "mobile window resumed")'+ )+++def event_counts(events, process):+ """Count only events belonging to this PID's current incarnation."""+ counts = {"cold": 0, "warm": 0, "resumed": 0}+ for event in events:+ if event.get("processID") != process.pid:+ continue+ timestamp = datetime.fromisoformat(event["timestamp"])+ if timestamp.tzinfo is None:+ raise ValueError("Log timestamps must include their timezone")+ if timestamp < process.started_at:+ continue+ message = event.get("eventMessage", "")+ if "emitting Opened" in message:+ if "emitting Opened with 1 URL(s)" not in message:+ raise AssertionError("Expected exactly one URL in each Opened event")+ if COLD_SOURCE in message:+ counts["cold"] += 1+ elif WARM_SOURCE in message:+ counts["warm"] += 1+ else:+ raise AssertionError("Unexpected Opened delivery path")+ if "mobile window resumed" in message:+ counts["resumed"] += 1+ return counts+++def check_counts(counts, cold, warm, resumed=None):+ expected = {"cold": cold, "warm": warm}+ if resumed is not None:+ expected["resumed"] = resumed+ for key, value in expected.items():+ if counts[key] != value:+ raise AssertionError(f"{key}: expected {value}, got {counts[key]}")+++def xcrun(*args, check=True):+ return subprocess.run(+ ["/usr/bin/xcrun", *args], capture_output=True, text=True,+ check=check, timeout=60,+ )+++class Smoke:+ def __init__(self, device, output, settle):+ self.device = device+ self.output = output+ self.settle = settle+ self.results = []++ def launch(self):+ result = xcrun("simctl", "launch", self.device, APP)+ match = re.search(rf"{re.escape(APP)}: (\d+)", result.stdout)+ if not match:+ raise RuntimeError("simctl launch did not return Macro's PID")+ return process_identity(int(match.group(1)))++ def stop(self):+ result = xcrun("simctl", "terminate", self.device, APP, check=False)+ if result.returncode and not any(+ text in result.stderr.lower()+ for text in ("found nothing to terminate", "not running")+ ):+ raise RuntimeError(result.stderr)++ def link(self, url):+ xcrun("devicectl", "device", "process", "launch", "--device",+ self.device, "--payload-url", url, APP)+ return self.launch()++ def checkpoint(self, name, process, cold, warm, resumed=None):+ time.sleep(self.settle)+ # Simulator processes share the host PID namespace. Check the birth+ # timestamp, not just liveness; never relaunch a crashed app to check it.+ check_process(process)+ predicate = log_predicate(process)+ raw = xcrun("simctl", "spawn", self.device, "log", "show", "--last",+ "30m", "--debug", "--style", "json", "--predicate", predicate).stdout+ (self.output / f"{name}.json").write_text(raw)+ xcrun("simctl", "io", self.device, "screenshot",+ str(self.output / f"{name}.png"))+ check_process(process)+ counts = event_counts(json.loads(raw), process)+ result = {+ "test": name, "pid": process.pid,+ "started_at": process.started_at.isoformat(), **counts, "passed": False,+ }+ self.results.append(result)+ check_counts(counts, cold, warm, resumed)+ result["passed"] = True+ print(json.dumps(result), flush=True)+ return counts++ def run(self):+ self.stop()+ self.checkpoint("normal", self.launch(), 0, 0)++ self.stop()+ process = self.link("macro://app/login")+ self.checkpoint("cold-login", process, 1, 0)+ if self.link("macro://app/welcome") != process:+ raise AssertionError("Warm link unexpectedly restarted Macro")+ before = self.checkpoint("warm-welcome", process, 1, 1)++ xcrun("simctl", "launch", self.device, "com.apple.mobilesafari")+ time.sleep(3)+ if self.launch() != process:+ raise AssertionError("Foregrounding unexpectedly restarted Macro")+ self.checkpoint("resumed", process, 1, 1, before["resumed"] + 1)++ self.stop()+ self.checkpoint("normal-after-links", self.launch(), 0, 0)+++def main():+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument("--device", required=True, type=uuid.UUID, help="Booted simulator UDID")+ parser.add_argument("--allow-restart", action="store_true", help="Allow terminating Macro; save drafts first")+ parser.add_argument("--settle-seconds", type=float, default=10, help="Wait before each checkpoint (default: 10)")+ args = parser.parse_args()+ if sys.platform != "darwin":+ parser.error("This smoke test requires macOS and Xcode 27")+ if not args.allow_restart:+ parser.error("Save any drafts, then pass --allow-restart; this test terminates Macro")+ if not 1 <= args.settle_seconds <= 60:+ parser.error("--settle-seconds must be between 1 and 60")+ device = str(args.device).upper()+ devices = json.loads(xcrun("simctl", "list", "devices", "booted", "--json").stdout)+ if not any(d["udid"] == device for group in devices["devices"].values() for d in group):+ parser.error("The requested simulator must already be booted")+ container = xcrun("simctl", "get_app_container", device, APP, "app").stdout.strip()+ with (Path(container) / "Info.plist").open("rb") as file:+ info = plistlib.load(file)+ manifest = info.get("UIApplicationSceneManifest", {})+ if manifest.get("UIApplicationSupportsMultipleScenes") is not False:+ parser.error("Installed Macro must use the single-window scene manifest")++ # mkdtemp uses mode 0700: screenshots may contain real account data.+ output = Path(tempfile.mkdtemp(prefix="macro-ios-smoke-"))+ print(f"Evidence: {output}", flush=True)+ smoke = Smoke(device, output, args.settle_seconds)+ try:+ smoke.run()+ finally:+ (output / "results.json").write_text(json.dumps(smoke.results, indent=2))+ print("PASS: lifecycle/link events. Review screenshots separately for navigation/rendering.")+++if __name__ == "__main__":+ main()diff --git a/apps/web/tests/native/ios/test_smoke.py b/apps/web/tests/native/ios/test_smoke.pynew file mode 100644index 0000000000..e8c95c82f3--- /dev/null+++ b/apps/web/tests/native/ios/test_smoke.py@@ -0,0 +1,151 @@+"""Portable unit/configuration checks; no simulator or third-party packages needed."""++from datetime import datetime, timedelta, timezone+import json+from pathlib import Path+import plistlib+import re+import tomllib+import unittest+from unittest.mock import patch++from smoke import (+ COLD_SOURCE, WARM_SOURCE, ProcessIdentity, check_counts, check_process,+ event_counts, log_predicate,+)++PROCESS = ProcessIdentity(42, datetime(2026, 9, 18, 16, 0, 0, 123456, tzinfo=timezone.utc))++WEB = Path(__file__).resolve().parents[3]+TAURI = WEB / "tauri"+APP = TAURI / "src-tauri"+++class EventTests(unittest.TestCase):+ def event(self, source, pid=42, timestamp=None):+ return {+ "processID": pid,+ "timestamp": (timestamp or PROCESS.started_at).isoformat(),+ "eventMessage": f"emitting Opened with 1 URL(s) from {source}",+ }++ def test_normal_launch_and_unrelated_process(self):+ counts = event_counts([self.event(COLD_SOURCE, pid=99)], PROCESS)+ check_counts(counts, 0, 0, 0)++ def test_one_cold_and_one_warm_link(self):+ counts = event_counts([self.event(COLD_SOURCE), self.event(WARM_SOURCE)], PROCESS)+ check_counts(counts, 1, 1)++ def test_duplicate_cold_event_fails(self):+ counts = event_counts([self.event(COLD_SOURCE)] * 2, PROCESS)+ with self.assertRaises(AssertionError):+ check_counts(counts, 1, 0)++ def test_missing_cold_event_fails(self):+ with self.assertRaises(AssertionError):+ check_counts(event_counts([], PROCESS), 1, 0)++ def test_multiple_urls_in_one_event_fails(self):+ event = self.event(COLD_SOURCE)+ event["eventMessage"] = event["eventMessage"].replace("1 URL(s)", "2 URL(s)")+ with self.assertRaises(AssertionError):+ event_counts([event], PROCESS)++ def test_resume_must_increment_without_replaying_link(self):+ resume = {"processID": 42, "timestamp": PROCESS.started_at.isoformat(),+ "eventMessage": "mobile window resumed, window_label: main"}+ before = event_counts([self.event(COLD_SOURCE), resume], PROCESS)+ after = event_counts([self.event(COLD_SOURCE), resume, resume], PROCESS)+ check_counts(after, 1, 0, before["resumed"] + 1)+ with self.assertRaises(AssertionError):+ check_counts(before, 1, 0, before["resumed"] + 1)++ def test_reused_pid_logs_cannot_satisfy_cold_checkpoint(self):+ old = self.event(COLD_SOURCE, timestamp=PROCESS.started_at - timedelta(microseconds=1))+ counts = event_counts([old], PROCESS)+ check_counts(counts, 0, 0)+ with self.assertRaises(AssertionError):+ check_counts(counts, 1, 0)+ check_counts(event_counts([old, self.event(COLD_SOURCE)], PROCESS), 1, 0)++ def test_log_timestamps_are_compared_with_timezone(self):+ event = self.event(COLD_SOURCE)+ event["timestamp"] = "2026-09-18 12:00:00.123456-0400"+ check_counts(event_counts([event], PROCESS), 1, 0)+ event["timestamp"] = "2026-09-18 12:00:00.123456"+ with self.assertRaises(ValueError):+ event_counts([event], PROCESS)+++class ProcessTests(unittest.TestCase):+ def test_same_incarnation_is_alive(self):+ with patch("smoke.process_identity", return_value=PROCESS) as read:+ check_process(PROCESS)+ read.assert_called_once_with(PROCESS.pid)++ def test_reused_pid_is_not_alive_even_within_same_second(self):+ replacement = ProcessIdentity(PROCESS.pid, PROCESS.started_at + timedelta(microseconds=1))+ with patch("smoke.process_identity", return_value=replacement):+ with self.assertRaises(AssertionError):+ check_process(PROCESS)++ def test_disappeared_process_fails(self):+ with patch("smoke.process_identity", side_effect=ProcessLookupError):+ with self.assertRaises(ProcessLookupError):+ check_process(PROCESS)++ def test_predicate_uses_process_start_and_nsdate_epoch(self):+ process = ProcessIdentity(42, datetime(2001, 1, 1, 0, 0, 1, 234567, tzinfo=timezone.utc))+ predicate = log_predicate(process)+ self.assertIn("processIdentifier == 42", predicate)+ self.assertIn('date >= CAST(1.234567, "NSDate")', predicate)+++class ConfigurationTests(unittest.TestCase):+ def test_scene_manifests_match_and_disable_additional_windows(self):+ expected = {+ "UIApplicationSupportsMultipleScenes": False,+ "UISceneConfigurations": {+ "UIWindowSceneSessionRoleApplication": [{"UISceneConfigurationName": "TaoScene"}]+ },+ }+ for relative in ("Info.ios.plist", "gen/apple/app_iOS/Info.plist"):+ with self.subTest(path=relative):+ with (APP / relative).open("rb") as file:+ self.assertEqual(plistlib.load(file)["UIApplicationSceneManifest"], expected)+ # Keep the checked-in XcodeGen declaration aligned without requiring a+ # YAML dependency for these stdlib-only tests.+ self.assertIn(+ " UIApplicationSceneManifest:\n"+ " UIApplicationSupportsMultipleScenes: false\n"+ " UISceneConfigurations:\n"+ " UIWindowSceneSessionRoleApplication:\n"+ " - UISceneConfigurationName: TaoScene\n",+ (APP / "gen/apple/project.yml").read_text(),+ )++ def test_ios_minimum_is_consistent(self):+ config = json.loads((APP / "tauri.conf.json").read_text())+ self.assertEqual(config["bundle"]["iOS"]["minimumSystemVersion"], "15.0")+ self.assertRegex((APP / "gen/apple/project.yml").read_text(), r"(?m)^ iOS: 15\.0$")+ project = (APP / "gen/apple/app.xcodeproj/project.pbxproj").read_text()+ targets = re.findall(r"IPHONEOS_DEPLOYMENT_TARGET = ([^;]+);", project)+ self.assertGreaterEqual(len(targets), 2, "Both debug and release must declare the minimum")+ self.assertEqual(set(targets), {"15.0"})++ def test_fork_sources_use_macro_inc_and_consistent_tauri_revision(self):+ manifest = tomllib.loads((TAURI / "Cargo.toml").read_text())+ tauri = manifest["workspace"]["dependencies"]["tauri"]+ self.assertEqual(tauri["git"], "https://github.com/macro-inc/tauri")+ patches = manifest["patch"]["crates-io"]+ for name in ("tauri", "tauri-runtime", "tauri-runtime-wry", "tauri-utils",+ "tauri-macros", "tauri-codegen", "tauri-build"):+ with self.subTest(crate=name):+ self.assertEqual(patches[name], tauri)+ self.assertEqual(patches["tao"]["git"], "https://github.com/macro-inc/tao")+ self.assertRegex(patches["tao"]["rev"], r"^[0-9a-f]{40}$")+++if __name__ == "__main__":+ unittest.main()diff --git a/docs/AGENT_GUIDE/login.md b/docs/AGENT_GUIDE/login.mdindex 1b90e90f8e..43d4d0dea4 100644--- a/docs/AGENT_GUIDE/login.md+++ b/docs/AGENT_GUIDE/login.md@@ -18,6 +18,25 @@failure does not block the remaining content; signup retries repair tagswithout resetting task priorities. The guide waits until its tag IDs resolve.+## Native iOS 27++The native welcome screen offers `Create new account` and `Log into existing+account` before the login form. Startup and background/foreground resume work+with the scene lifecycle enabled; Macro remains single-window on iPhone and+iPad. The iPad welcome screen can show an `Optimized for iPhone` notice.+Mobile resume is delivered per window, independently of ordinary focus changes.+A custom-scheme link to `macro://app/login` now opens the login form both+while Macro is running and when it cold-starts the app. Verify both cases+separately. When signed out, an ordinary launch with no URL should show the+welcome screen. When signed in, the session should survive restart and the app+should open its authenticated landing view without replaying an old deep link.+For simulator checks, `xcrun devicectl device process launch --device <udid>+--payload-url 'macro://app/login' com.macro.app.prod` delivers the link without+`simctl openurl`'s confirmation dialog. Terminate Macro first for the cold case.+Signed universal links and share-sheet flows still need end-to-end verification;+see the [Tauri guide](../../apps/web/tauri/src-tauri/README.md#ios-27-scene-lifecycle)+and [repeatable iOS smoke test](../../apps/web/tests/native/ios/README.md).+## Mailpit (local email)- UI: `http://localhost:<mailpit-port>/`